From 06dca387861df5c5f2f9a353ec87b938f8fe6fc2 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Mon, 11 Jul 2016 00:09:27 +0200 Subject: [PATCH] Ignore empty username matches --- .../system/html/input/node/HtmlInputNodeTextParser.class.php | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.20.1