From 74f62f9f9078b3c22034d27029a11cf84444ec6d Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Tue, 28 Jan 2014 14:40:03 +0100 Subject: [PATCH] Fixed email parsing issue --- wcfsetup/install/files/lib/system/bbcode/PreParser.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]'); -- 2.20.1