]> git.mxchange.org Git - friendica.git/commitdiff
Fix for exceptions on external redirects
authorMichael <heluecht@pirati.ca>
Mon, 3 Dec 2018 15:59:53 +0000 (15:59 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 3 Dec 2018 15:59:53 +0000 (15:59 +0000)
src/Core/System.php

index eadbf98d2648b6ae4fb89c8650f982b3196cf1d4..3bd06bc1919524e48c1c63fb0fdfab3244caa578 100644 (file)
@@ -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");
                }