Fixed censorship treating '@' as delimiter
authorAlexander Ebert <ebert@woltlab.com>
Mon, 2 Mar 2015 17:11:38 +0000 (18:11 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 2 Mar 2015 17:11:38 +0000 (18:11 +0100)
Stripping the '@' makes it impossible to match against e-mail addresses.

wcfsetup/install/files/lib/system/message/censorship/Censorship.class.php

index 7e6b68feaae0bbe93cadf93b26c869c580b60c34..fc2b7ac5268beafdf147964e3173cd6371753415 100644 (file)
@@ -24,7 +24,7 @@ class Censorship extends SingletonFactory {
         * word delimiters
         * @var string
         */
-       protected $delimiters = '[\s\x21-\x2F\x3A-\x40\x5B-\x60\x7B-\x7E]';
+       protected $delimiters = '[\s\x21-\x2F\x3A-\x3F\x5B-\x60\x7B-\x7E]';
        
        /**
         * list of words