diff options
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -484,7 +484,7 @@ if (isset($_POST['login'])) | |||
484 | if (isset($_POST['returnurl'])) { | 484 | if (isset($_POST['returnurl'])) { |
485 | // Prevent loops over login screen. | 485 | // Prevent loops over login screen. |
486 | if (strpos($_POST['returnurl'], 'do=login') === false) { | 486 | if (strpos($_POST['returnurl'], 'do=login') === false) { |
487 | header('Location: '. escape($_POST['returnurl'])); | 487 | header('Location: '. generateLocation($_POST['returnurl'], $_SERVER['HTTP_HOST'])); |
488 | exit; | 488 | exit; |
489 | } | 489 | } |
490 | } | 490 | } |