From 2f013f4a06c0f222164abecaed1bbfd2b5b0eec6 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 31 Jan 2019 13:06:57 +0100 Subject: [PATCH] Better detection of non-http protocols --- .../files/lib/system/application/ApplicationHandler.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.20.1