From c8717bc3c213847efda3780f4b627fb1360691b3 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Fri, 27 May 2016 11:45:26 +0200 Subject: [PATCH] Fixed censorship issue --- .../files/lib/system/message/censorship/Censorship.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/message/censorship/Censorship.class.php b/wcfsetup/install/files/lib/system/message/censorship/Censorship.class.php index 18e51fe88e..377e859989 100644 --- a/wcfsetup/install/files/lib/system/message/censorship/Censorship.class.php +++ b/wcfsetup/install/files/lib/system/message/censorship/Censorship.class.php @@ -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])))); } } -- 2.20.1