aboutsummaryrefslogtreecommitdiffstats
path: root/include/security.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-08-29 23:03:03 -0700
committerfriendica <info@friendica.com>2012-08-29 23:03:03 -0700
commitf6d198ce5dcd9fe416975ff760439dfacbb83812 (patch)
tree77be24f7ab74dfcd62c2e621eb6f7568a78d8de6 /include/security.php
parentda49a27aa24b6a85b2623134884d933dc04e201b (diff)
downloadvolse-hubzilla-f6d198ce5dcd9fe416975ff760439dfacbb83812.tar.gz
volse-hubzilla-f6d198ce5dcd9fe416975ff760439dfacbb83812.tar.bz2
volse-hubzilla-f6d198ce5dcd9fe416975ff760439dfacbb83812.zip
trim a bit of fat
Diffstat (limited to 'include/security.php')
-rw-r--r--include/security.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/include/security.php b/include/security.php
index 5302639d4..4141d0948 100644
--- a/include/security.php
+++ b/include/security.php
@@ -136,11 +136,9 @@ function authenticate_success($user_record, $login_initial = false, $interactive
return;
}
-
-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']);
+ if(($a->module !== 'home') && x($_SESSION,'login_return_url') && strlen($_SESSION['login_return_url'])) {
+ $return_url = $_SESSION['login_return_url'];
+ unset($_SESSION['login_return_url']);
goaway($a->get_baseurl() . '/' . $return_url);
}