aboutsummaryrefslogtreecommitdiffstats
path: root/include/security.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-08-27 21:56:13 -0700
committerfriendica <info@friendica.com>2012-08-27 21:56:13 -0700
commita13c19603205b628f84b3de9ce23ab5029699783 (patch)
treedfbe76e4defdf6ac664185e5e5b227ca36e23489 /include/security.php
parent7fad83cea4dd134df6dacf8248ef6947dca7f100 (diff)
downloadvolse-hubzilla-a13c19603205b628f84b3de9ce23ab5029699783.tar.gz
volse-hubzilla-a13c19603205b628f84b3de9ce23ab5029699783.tar.bz2
volse-hubzilla-a13c19603205b628f84b3de9ce23ab5029699783.zip
solve endless redirect
Diffstat (limited to 'include/security.php')
-rw-r--r--include/security.php8
1 files changed, 5 insertions, 3 deletions
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);
+ }
}