Use generateLocation to set the redirection in login (and don't escape the url)
This commit is contained in:
parent
890afc32f7
commit
e15f08d72a
1 changed files with 1 additions and 1 deletions
|
@ -483,7 +483,7 @@ if (isset($_POST['login']))
|
|||
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