Browse Source

Merge pull request #6230 from annando/ext-redirect

Fix for exceptions on external redirects
pull/6233/head
Hypolite Petovan 2 years ago
committed by GitHub
parent
commit
e05552470d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Core/System.php

+ 1
- 1
src/Core/System.php View 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");
}

Loading…
Cancel
Save