diff options
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); + } } |