MantisBT: master-1.3.x dc662052

Author Committer Branch Timestamp Parent
Damien Regad Damien Regad master-1.3.x 2016-06-12 13:15 master-1.3.x 987223b8
Affected Issues  0021083: Link to user page is not always displayed when using @ mentioning
Changeset

Use specific regex for parsing mentions

It turns out that the current $g_user_login_valid_regex pattern
cannot be used as it allows spaces. Furthermore, special handling is
required to process e-mail address-like strings.

For this reason, a custom regex is built for the purpose of mentions
parsing, supporting only a subset of the allowed usernames.

Fixes 0021083

mod - core/mention_api.php Diff File