Fixed censorship issue
authorMarcel Werk <burntime@woltlab.com>
Fri, 27 May 2016 09:45:26 +0000 (11:45 +0200)
committerMarcel Werk <burntime@woltlab.com>
Fri, 27 May 2016 09:45:26 +0000 (11:45 +0200)
wcfsetup/install/files/lib/system/message/censorship/Censorship.class.php

index 18e51fe88ea280e3ea80eb955d43ef81d3f54f78..377e85998926f21d382e3067137c5ea3540f7610 100644 (file)
@@ -175,7 +175,7 @@ class Censorship extends SingletonFactory {
                                return true;
                        }
                        else if (mb_strpos($search, $this->words[$index]) === (mb_strlen($search) - mb_strlen($this->words[$index]))) {
-                               return $this->lookBehind($index - 1, 0, (mb_strlen($search) - mb_strlen($this->words[$index])));
+                               return $this->lookBehind($index - 1, mb_substr($search, 0, (mb_strlen($search) - mb_strlen($this->words[$index]))));
                        }
                }