Better detection of non-http protocols
authorAlexander Ebert <ebert@woltlab.com>
Thu, 31 Jan 2019 12:06:57 +0000 (13:06 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 31 Jan 2019 12:06:57 +0000 (13:06 +0100)
wcfsetup/install/files/lib/system/application/ApplicationHandler.class.php

index 65a9ff88a84aaadeeec64992ba19b1ff440e1f77..3175f8ed635115cbf999868218bed8d059b456b0 100644 (file)
@@ -201,7 +201,7 @@ class ApplicationHandler extends SingletonFactory {
                }
                
                // relative urls contain no protocol, including implied
-               if (!preg_match('~^([a-z]+)?://~', $url)) {
+               if (!preg_match('~^([a-zA-Z0-9]+)?://~', $url)) {
                        return true;
                }