Merge pull request #521 from ArthurHoaro/hotfix/404login
Use generateLocation to set the redirection in login (and don't escape the url)
This commit is contained in:
commit
b2764886c7
1 changed files with 1 additions and 1 deletions
|
@ -483,7 +483,7 @@ function ban_canLogin()
|
|||
if (isset($_POST['returnurl'])) {
|
||||
// Prevent loops over login screen.
|
||||
if (strpos($_POST['returnurl'], 'do=login') === false) {
|
||||
header('Location: '. escape($_POST['returnurl']));
|
||||
header('Location: '. generateLocation($_POST['returnurl'], $_SERVER['HTTP_HOST']));
|
||||
exit;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue