mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Merge pull request #4459 from rxu/ticket/14794
[ticket/14794] Adjust redirect() behavior for PHP 7.1+ compatibility
This commit is contained in:
commit
9a64bffd68
1 changed files with 2 additions and 2 deletions
|
@ -1723,8 +1723,8 @@ function redirect($url, $return = false, $disable_cd_check = false)
|
||||||
|
|
||||||
if ($url_parts === false)
|
if ($url_parts === false)
|
||||||
{
|
{
|
||||||
// Malformed url, redirect to current page...
|
// Malformed url
|
||||||
$url = generate_board_url() . '/' . $user->page['page'];
|
trigger_error('INSECURE_REDIRECT', E_USER_ERROR);
|
||||||
}
|
}
|
||||||
else if (!empty($url_parts['scheme']) && !empty($url_parts['host']))
|
else if (!empty($url_parts['scheme']) && !empty($url_parts['host']))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue