From: Alexander Ebert Date: Thu, 31 Jan 2019 12:06:57 +0000 (+0100) Subject: Better detection of non-http protocols X-Git-Tag: 5.2.0_Alpha_1~327 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2f013f4a06c0f222164abecaed1bbfd2b5b0eec6;p=GitHub%2FWoltLab%2FWCF.git Better detection of non-http protocols --- diff --git a/wcfsetup/install/files/lib/system/application/ApplicationHandler.class.php b/wcfsetup/install/files/lib/system/application/ApplicationHandler.class.php index 65a9ff88a8..3175f8ed63 100644 --- a/wcfsetup/install/files/lib/system/application/ApplicationHandler.class.php +++ b/wcfsetup/install/files/lib/system/application/ApplicationHandler.class.php @@ -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; }