From 7ef434fbf39a43f85d702e9aad87a505c5c01209 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 10 Mar 2015 15:54:51 +0100 Subject: [PATCH] Fixed testing for censored words containing delimiters --- .../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 fc2b7ac526..55f8866c54 100644 --- a/wcfsetup/install/files/lib/system/message/censorship/Censorship.class.php +++ b/wcfsetup/install/files/lib/system/message/censorship/Censorship.class.php @@ -55,7 +55,7 @@ class Censorship extends SingletonFactory { $displayedCensoredWord = str_replace(array('~', '*'), '', $censoredWord); // check if censored word contains at least one delimiter - if (preg_match('!'.$this->delimiters.'+!', $censoredWord)) { + if (preg_match('!'.$this->delimiters.'+!', $displayedCensoredWord)) { // remove delimiters $censoredWord = preg_replace('!'.$this->delimiters.'!', '', $censoredWord); -- 2.20.1