From 60b854866329cccd471146684ae61324ee8899c0 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 10 Mar 2015 15:15:59 +0100 Subject: [PATCH] Fixed mention detection causing the following word to be discarded --- .../lib/system/event/listener/PreParserAtUserListener.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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])); } -- 2.20.1