diff options
author | friendica <info@friendica.com> | 2012-08-27 21:56:13 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-08-27 21:56:13 -0700 |
commit | a13c19603205b628f84b3de9ce23ab5029699783 (patch) | |
tree | dfbe76e4defdf6ac664185e5e5b227ca36e23489 /include | |
parent | 7fad83cea4dd134df6dacf8248ef6947dca7f100 (diff) | |
download | volse-hubzilla-a13c19603205b628f84b3de9ce23ab5029699783.tar.gz volse-hubzilla-a13c19603205b628f84b3de9ce23ab5029699783.tar.bz2 volse-hubzilla-a13c19603205b628f84b3de9ce23ab5029699783.zip |
solve endless redirect
Diffstat (limited to 'include')
-rw-r--r-- | include/security.php | 8 |
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); + } } |