From: Alexander Ebert Date: Tue, 10 Mar 2015 14:54:51 +0000 (+0100) Subject: Fixed testing for censored words containing delimiters X-Git-Tag: 2.1.2~64 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7ef434fbf39a43f85d702e9aad87a505c5c01209;p=GitHub%2FWoltLab%2FWCF.git Fixed testing for censored words containing delimiters --- 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);