aboutsummaryrefslogtreecommitdiff
path: root/actions/login.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/login.php')
-rw-r--r--actions/login.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/actions/login.php b/actions/login.php
index b7823514a..67a2052b6 100644
--- a/actions/login.php
+++ b/actions/login.php
@@ -36,7 +36,7 @@ if ($result) {
forward($forward_url);
} else {
if (get_input('returntoreferer')) {
- forward($_SERVER['HTTP_REFERER']);
+ forward(REFERER);
} else {
// forward to index for front page overrides.
// index will forward to dashboard if appropriate.