From a13c19603205b628f84b3de9ce23ab5029699783 Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 27 Aug 2012 21:56:13 -0700 Subject: solve endless redirect --- include/security.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'include/security.php') diff --git a/include/security.php b/include/security.php index 51221837b..bb75e7af1 100644 --- a/include/security.php +++ b/include/security.php @@ -138,9 +138,11 @@ function authenticate_success($user_record, $login_initial = false, $interactive - if(($a->module !== 'home') && isset($_SESSION['return_url'])) - goaway($a->get_baseurl() . '/' . $_SESSION['return_url']); - + if(($a->module !== 'home') && isset($_SESSION['return_url'])) { + $return_url = $_SESSION['return_url']; + unset($_SESSION['return_url']); + goaway($a->get_baseurl() . '/' . $return_url); + } } -- cgit v1.2.3