1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-04-19 07:16:36 +02:00

[ticket/14794] Adjust redirect() behavior for PHP 7.1+ compatibility

PHPBB3-14794
This commit is contained in:
rxu 2016-09-23 19:47:05 +07:00
parent 6ae405f743
commit a5ccdc7997

View File

@ -1723,8 +1723,8 @@ function redirect($url, $return = false, $disable_cd_check = false)
if ($url_parts === false)
{
// Malformed url, redirect to current page...
$url = generate_board_url() . '/' . $user->page['page'];
// Malformed url
trigger_error('INSECURE_REDIRECT', E_USER_ERROR);
}
else if (!empty($url_parts['scheme']) && !empty($url_parts['host']))
{