From f59a2d34b9fe5663d57dc8c5f875e7da93b0912f Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Thu, 29 May 2014 21:41:12 +0200 Subject: [PATCH] Fixed max tld length --- wcfsetup/install/files/lib/system/bbcode/PreParser.class.php | 2 +- .../files/lib/system/bbcode/SimpleMessageParser.class.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/lib/system/bbcode/PreParser.class.php b/wcfsetup/install/files/lib/system/bbcode/PreParser.class.php index d93628c03b..2a52a186aa 100644 --- a/wcfsetup/install/files/lib/system/bbcode/PreParser.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/PreParser.class.php @@ -125,7 +125,7 @@ class PreParser extends SingletonFactory { (?:ftp|https?)://'.static::$illegalChars.'(?:\.'.static::$illegalChars.')* | www\.(?:'.static::$illegalChars.'\.)+ - (?:[a-z]{2,4}(?=\b)) + (?:[a-z]{2,63}(?=\b)) # tld ) (?::\d+)? # port diff --git a/wcfsetup/install/files/lib/system/bbcode/SimpleMessageParser.class.php b/wcfsetup/install/files/lib/system/bbcode/SimpleMessageParser.class.php index 1d07ad21e7..614101a528 100644 --- a/wcfsetup/install/files/lib/system/bbcode/SimpleMessageParser.class.php +++ b/wcfsetup/install/files/lib/system/bbcode/SimpleMessageParser.class.php @@ -111,7 +111,7 @@ class SimpleMessageParser extends SingletonFactory { (?:ftp|https?)://'.static::$illegalChars.'(?:\.'.static::$illegalChars.')* | www\.(?:'.static::$illegalChars.'\.)+ - (?:[a-z]{2,4}(?=\b)) + (?:[a-z]{2,63}(?=\b)) # tld ) (?::\d+)? # port -- 2.20.1