]> git.mxchange.org Git - friendica.git/blobdiff - src/Core/System.php
Merge pull request #6381 from MrPetovan/bug/2800-fix-accordion-ios
[friendica.git] / 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");
                }