From 196ea2460aa573dfbb1ace6cb0b7246b4056bdb0 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 16 Jul 2014 22:10:30 +0200 Subject: [PATCH] Relative URLs are no longer recognized as external ones --- .../lib/system/application/ApplicationHandler.class.php | 5 +++++ 1 file changed, 5 insertions(+) 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; } -- 2.20.1