From f6d198ce5dcd9fe416975ff760439dfacbb83812 Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 29 Aug 2012 23:03:03 -0700 Subject: trim a bit of fat --- include/security.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'include/security.php') diff --git a/include/security.php b/include/security.php index 5302639d4..4141d0948 100644 --- a/include/security.php +++ b/include/security.php @@ -136,11 +136,9 @@ function authenticate_success($user_record, $login_initial = false, $interactive return; } - -unset($_SESSION['return_url']); - if(($a->module !== 'home') && isset($_SESSION['return_url']) && strlen($_SESSION['return_url'])) { - $return_url = $_SESSION['return_url']; - unset($_SESSION['return_url']); + if(($a->module !== 'home') && x($_SESSION,'login_return_url') && strlen($_SESSION['login_return_url'])) { + $return_url = $_SESSION['login_return_url']; + unset($_SESSION['login_return_url']); goaway($a->get_baseurl() . '/' . $return_url); } -- cgit v1.2.3