From: Alexander Ebert Date: Sun, 10 Jul 2016 22:09:27 +0000 (+0200) Subject: Ignore empty username matches X-Git-Tag: 3.0.0_Beta_1~1207 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=06dca387861df5c5f2f9a353ec87b938f8fe6fc2;p=GitHub%2FWoltLab%2FWCF.git Ignore empty username matches --- 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 ebdf26e868..3052c16d24 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 @@ -186,6 +186,10 @@ class HtmlInputNodeTextParser { // $i = 1 to skip the full match for ($i = 1, $length = count($matches); $i < $length; $i++) { for ($j = 0, $innerLength = count($matches[$i]); $j < $innerLength; $j++) { + if ($matches[$i][$j] === '') { + continue; + } + $username = $this->getUsername($matches[$i][$j]); if (!isset($usernames[$username])) { $usernames[$username] = $username;