From: Alexander Ebert Date: Tue, 10 Mar 2015 14:15:59 +0000 (+0100) Subject: Fixed mention detection causing the following word to be discarded X-Git-Tag: 2.1.2~65 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=60b854866329cccd471146684ae61324ee8899c0;p=GitHub%2FWoltLab%2FWCF.git Fixed mention detection causing the following word to be discarded --- diff --git a/wcfsetup/install/files/lib/system/event/listener/PreParserAtUserListener.class.php b/wcfsetup/install/files/lib/system/event/listener/PreParserAtUserListener.class.php index 435ad75f79..9a68014fc9 100644 --- a/wcfsetup/install/files/lib/system/event/listener/PreParserAtUserListener.class.php +++ b/wcfsetup/install/files/lib/system/event/listener/PreParserAtUserListener.class.php @@ -124,7 +124,7 @@ class PreParserAtUserListener implements IParameterizedEventListener { $mention = "[url='".$link."']@".$users[$username]->username.'[/url]'; // check if only the part before the first space matched, in that case append the second word - if (isset($matches[2]) && $matches[2] == $username) { + if (isset($matches[2]) && strcasecmp($matches[2], $username) === 0) { $mention .= mb_substr($matches[1], strlen($matches[2])); }