Fixed email parsing issue
authorMarcel Werk <burntime@woltlab.com>
Tue, 28 Jan 2014 13:40:03 +0000 (14:40 +0100)
committerMarcel Werk <burntime@woltlab.com>
Tue, 28 Jan 2014 13:40:03 +0000 (14:40 +0100)
wcfsetup/install/files/lib/system/bbcode/PreParser.class.php

index ac8770386b30fa9b1577f8ee76d85783a07c5cea..278d0a33ec3341c85c89c91b97db88b99ff6520d 100644 (file)
@@ -106,7 +106,7 @@ class PreParser extends SingletonFactory {
                        @
                        (?:'.self::$illegalChars.'\.)+          # hostname
                        (?:[a-z]{2,4}(?=\b))
-                       (?!"|\'|\[|\-|\.[a-z])', Regex::IGNORE_WHITESPACE | Regex::CASE_INSENSITIVE);
+                       (?!"|\'|\[|\-|\]|\.[a-z])', Regex::IGNORE_WHITESPACE | Regex::CASE_INSENSITIVE);
                }
                
                $this->text = $emailPattern->replace($this->text, '[email]\\0[/email]');