From: Marcel Werk Date: Tue, 28 Jan 2014 13:40:03 +0000 (+0100) Subject: Fixed email parsing issue X-Git-Tag: 2.0.2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=74f62f9f9078b3c22034d27029a11cf84444ec6d;p=GitHub%2FWoltLab%2FWCF.git Fixed email parsing issue --- diff --git a/wcfsetup/install/files/lib/system/bbcode/PreParser.class.php b/wcfsetup/install/files/lib/system/bbcode/PreParser.class.php index ac8770386b..278d0a33ec 100644 --- a/wcfsetup/install/files/lib/system/bbcode/PreParser.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/PreParser.class.php @@ -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]');