Detection of repeated mentions with the first mention at index 0
authorAlexander Ebert <ebert@woltlab.com>
Fri, 9 Apr 2021 14:38:22 +0000 (16:38 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Fri, 9 Apr 2021 14:38:22 +0000 (16:38 +0200)
wcfsetup/install/files/lib/system/html/input/node/HtmlInputNodeTextParser.class.php

index a789066f881663dd58a3e1578e9a5b554295473e..79dea3071a2d1521d5716cd00b4d14e90c95e6fd 100644 (file)
@@ -384,7 +384,7 @@ class HtmlInputNodeTextParser {
                                        $offset = $pos + mb_strlen($marker);
                                }
                        }
-                       while ($pos);
+                       while ($pos !== false);
                };
                
                foreach ($users as $userID => $username) {