From: Michael Date: Mon, 3 Dec 2018 15:59:53 +0000 (+0000) Subject: Fix for exceptions on external redirects X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=fb68b501395dad79f20777de0573e387f8f01820;p=friendica.git Fix for exceptions on external redirects --- 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"); }