mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-10 13:28:55 +00:00
small redirect fix. ;)
git-svn-id: file:///svn/phpbb/trunk@7209 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
2ed600a60d
commit
a59b59a821
1 changed files with 8 additions and 1 deletions
|
@ -1699,7 +1699,14 @@ function redirect($url, $return = false)
|
|||
}
|
||||
else
|
||||
{
|
||||
$url = generate_board_url() . '/' . str_replace('./', '', $url);
|
||||
$url = str_replace('./', '', $url);
|
||||
|
||||
if ($url && substr($url, -1, 1) == '/')
|
||||
{
|
||||
$url = substr($url, 0, -1);
|
||||
}
|
||||
|
||||
$url = generate_board_url() . '/' . $url;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue