From 9cd1dabe73f7bd01473848f55cb4595494837ac9 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 28 Aug 2012 03:02:45 -0700 Subject: have to do something about that return_url - but let's just plunge forward without it. --- include/security.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/security.php') diff --git a/include/security.php b/include/security.php index bb75e7af1..5302639d4 100644 --- a/include/security.php +++ b/include/security.php @@ -137,8 +137,8 @@ function authenticate_success($user_record, $login_initial = false, $interactive } - - if(($a->module !== 'home') && isset($_SESSION['return_url'])) { +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']); goaway($a->get_baseurl() . '/' . $return_url); -- cgit v1.2.3