Fix for exceptions on external redirects

2022.09-rc
Michael 2018-12-03 15:59:53 +00:00
rodzic bfe809f60d
commit fb68b50139
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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");
}