From fb68b501395dad79f20777de0573e387f8f01820 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 3 Dec 2018 15:59:53 +0000 Subject: [PATCH] Fix for exceptions on external redirects --- src/Core/System.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/System.php b/src/Core/System.php index eadbf98d26..3bd06bc191 100644 --- a/src/Core/System.php +++ b/src/Core/System.php @@ -272,7 +272,7 @@ class System extends BaseObject */ public static function externalRedirect($url) { - if (!filter_var($url, FILTER_VALIDATE_URL)) { + if (empty(parse_url($url, PHP_URL_SCHEME))) { throw new InternalServerErrorException("'$url' is not a fully qualified URL, please use App->internalRedirect() instead"); }