aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.php b/index.php
index 850b350e..27db10ba 100644
--- a/index.php
+++ b/index.php
@@ -483,7 +483,7 @@ if (isset($_POST['login']))
483 if (isset($_POST['returnurl'])) { 483 if (isset($_POST['returnurl'])) {
484 // Prevent loops over login screen. 484 // Prevent loops over login screen.
485 if (strpos($_POST['returnurl'], 'do=login') === false) { 485 if (strpos($_POST['returnurl'], 'do=login') === false) {
486 header('Location: '. escape($_POST['returnurl'])); 486 header('Location: '. generateLocation($_POST['returnurl'], $_SERVER['HTTP_HOST']));
487 exit; 487 exit;
488 } 488 }
489 } 489 }