diff options
author | cash <cash.costello@gmail.com> | 2013-05-30 18:52:08 -0400 |
---|---|---|
committer | cash <cash.costello@gmail.com> | 2013-05-30 18:52:08 -0400 |
commit | f4fef67a3833138b5f87227a0297cd66fcf4a207 (patch) | |
tree | 69a03a46df6cb714e26452280a05ac6fee409272 /actions/login.php | |
parent | 25faa618143839e087f55e17c878be85596cf077 (diff) | |
download | elgg-f4fef67a3833138b5f87227a0297cd66fcf4a207.tar.gz elgg-f4fef67a3833138b5f87227a0297cd66fcf4a207.tar.bz2 |
Fixes #5559 not clearing last_forward_from in session if login fails
Diffstat (limited to 'actions/login.php')
-rw-r--r-- | actions/login.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/actions/login.php b/actions/login.php index 1e5e92ede..bd7f91299 100644 --- a/actions/login.php +++ b/actions/login.php @@ -9,7 +9,6 @@ // set forward url if (!empty($_SESSION['last_forward_from'])) { $forward_url = $_SESSION['last_forward_from']; - unset($_SESSION['last_forward_from']); } elseif (get_input('returntoreferer')) { $forward_url = REFERER; } else { @@ -62,5 +61,9 @@ if ($user->language) { $message = elgg_echo('loginok'); } +if (isset($_SESSION['last_forward_from'])) { + unset($_SESSION['last_forward_from']); +} + system_message($message); forward($forward_url); |