diff options
author | Steve Clay <steve@mrclay.org> | 2012-08-05 21:03:35 -0400 |
---|---|---|
committer | Steve Clay <steve@mrclay.org> | 2012-08-05 21:03:35 -0400 |
commit | ef351d0cf8a866cb40285e71fe5ed2b980bd11ed (patch) | |
tree | 7e5c43f03e2b2a4d13e6cee3a7e850b3ad811597 /actions | |
parent | 0a0203a418a082a38c5c700ea11377153fa37555 (diff) | |
download | elgg-ef351d0cf8a866cb40285e71fe5ed2b980bd11ed.tar.gz elgg-ef351d0cf8a866cb40285e71fe5ed2b980bd11ed.tar.bz2 |
Fixes #4764: Twitter login supports persistent and referrer forwarding
Diffstat (limited to 'actions')
-rw-r--r-- | actions/login.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actions/login.php b/actions/login.php index ea7fb3508..1e5e92ede 100644 --- a/actions/login.php +++ b/actions/login.php @@ -7,7 +7,7 @@ */ // set forward url -if (isset($_SESSION['last_forward_from']) && $_SESSION['last_forward_from']) { +if (!empty($_SESSION['last_forward_from'])) { $forward_url = $_SESSION['last_forward_from']; unset($_SESSION['last_forward_from']); } elseif (get_input('returntoreferer')) { @@ -19,7 +19,7 @@ if (isset($_SESSION['last_forward_from']) && $_SESSION['last_forward_from']) { $username = get_input('username'); $password = get_input('password', null, false); -$persistent = get_input("persistent", false); +$persistent = (bool) get_input("persistent"); $result = false; if (empty($username) || empty($password)) { |