From: Alexander Ebert Date: Tue, 26 Sep 2017 10:42:17 +0000 (+0200) Subject: Allow usernames consisting of short words to be recognized X-Git-Tag: 3.1.0_Beta_1~9^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b4015477c8f0eb27861ad35c0e9a62c29ad73174;p=GitHub%2FWoltLab%2FWCF.git Allow usernames consisting of short words to be recognized --- diff --git a/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeTextParser.class.php b/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeTextParser.class.php index 70074af8ff..8ea4f1024e 100644 --- a/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeTextParser.class.php +++ b/wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeTextParser.class.php @@ -68,7 +68,7 @@ class HtmlInputNodeTextParser { \\B # any non-word character, whitespace, string start is fine @ ( - ([^',\s][^,\s]{2,})(?:\s[^@,\s][^,\s]*)? # either at most two strings, + ([^',\s][^,\s]{1,})(?:\s[^@,\s][^,\s]*)? # either at most two strings, # not containing the whitespace or the comma, # not starting with a single quote # the second string not starting with the at sign