mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
let the forum link work again
(we do not need the removed check because the board url is always prefixed, except for those urls having a valid scheme and host part) git-svn-id: file:///svn/phpbb/trunk@6508 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
771c20a5a4
commit
025d0bf757
1 changed files with 1 additions and 1 deletions
|
@ -1541,7 +1541,7 @@ function redirect($url, $return = false)
|
|||
}
|
||||
|
||||
// Make sure no linebreaks are there... to prevent http response splitting for PHP < 4.4.2
|
||||
if (strpos(urldecode($url), "\n") !== false || strpos(urldecode($url), "\r") !== false || strpos($url, ';') !== false || strpos($url, generate_board_url()) !== 0)
|
||||
if (strpos(urldecode($url), "\n") !== false || strpos(urldecode($url), "\r") !== false || strpos($url, ';') !== false)
|
||||
{
|
||||
trigger_error('Tried to redirect to potentially insecure url.', E_USER_ERROR);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue