mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-11 22:08:54 +00:00
[ticket/security-180] Use language variable for redirect error in 3.1+
SECURITY-180
This commit is contained in:
parent
416728fc17
commit
d7c96cc60c
1 changed files with 1 additions and 1 deletions
|
@ -2309,7 +2309,7 @@ function redirect($url, $return = false, $disable_cd_check = false)
|
|||
// Attention: only able to redirect within the same domain if $disable_cd_check is false (yourdomain.com -> www.yourdomain.com will not work)
|
||||
if (!$disable_cd_check && $url_parts['host'] !== $user->host)
|
||||
{
|
||||
trigger_error('Tried to redirect to potentially insecure url.', E_USER_ERROR);
|
||||
trigger_error('INSECURE_REDIRECT', E_USER_ERROR);
|
||||
}
|
||||
}
|
||||
else if ($url[0] == '/')
|
||||
|
|
Loading…
Add table
Reference in a new issue