aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/security.php4
1 files changed, 2 insertions, 2 deletions
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);