From b3ef7958d2c28fc910b209acef1affe0542d1492 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 9 Apr 2021 16:38:22 +0200 Subject: [PATCH] Detection of repeated mentions with the first mention at index 0 --- .../system/html/input/node/HtmlInputNodeTextParser.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 a789066f88..79dea3071a 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 @@ -384,7 +384,7 @@ class HtmlInputNodeTextParser { $offset = $pos + mb_strlen($marker); } } - while ($pos); + while ($pos !== false); }; foreach ($users as $userID => $username) { -- 2.20.1