From: Alexander Ebert Date: Wed, 16 Jul 2014 20:10:30 +0000 (+0200) Subject: Relative URLs are no longer recognized as external ones X-Git-Tag: 2.1.0_Alpha_1~558^2~7 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=196ea2460aa573dfbb1ace6cb0b7246b4056bdb0;p=GitHub%2FWoltLab%2FWCF.git Relative URLs are no longer recognized as external ones --- diff --git a/wcfsetup/install/files/lib/system/application/ApplicationHandler.class.php b/wcfsetup/install/files/lib/system/application/ApplicationHandler.class.php index d2d024382f..8841677f73 100644 --- a/wcfsetup/install/files/lib/system/application/ApplicationHandler.class.php +++ b/wcfsetup/install/files/lib/system/application/ApplicationHandler.class.php @@ -158,6 +158,11 @@ class ApplicationHandler extends SingletonFactory { } } + // relative urls contain no protocol, including implied + if (!preg_match('~^([a-z]+)?://~', $url)) { + return true; + } + return false; }