aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.php b/index.php
index 79c66648..74091f37 100644
--- a/index.php
+++ b/index.php
@@ -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 }