Fixed max tld length
authorMarcel Werk <burntime@woltlab.com>
Thu, 29 May 2014 19:41:12 +0000 (21:41 +0200)
committerMarcel Werk <burntime@woltlab.com>
Thu, 29 May 2014 19:41:12 +0000 (21:41 +0200)
wcfsetup/install/files/lib/system/bbcode/PreParser.class.php
wcfsetup/install/files/lib/system/bbcode/SimpleMessageParser.class.php

index d93628c03ba9779f0af3d1525feae8f1aa618980..2a52a186aa97361fd7e88e4100206fd484f1059f 100644 (file)
@@ -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
index 1d07ad21e77b7d60b0d28a8313d037bb1e50b189..614101a52889b0a7da27312a5e8be181d22bf773 100644 (file)
@@ -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