aboutsummaryrefslogtreecommitdiffstats
path: root/include/security.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-08-28 03:02:45 -0700
committerfriendica <info@friendica.com>2012-08-28 03:02:45 -0700
commit9cd1dabe73f7bd01473848f55cb4595494837ac9 (patch)
tree767d3944008b6fee85d0679872edb14759f882fb /include/security.php
parent5d23e701c04a6962bf11489a3c5d0c0ef0283bc8 (diff)
downloadvolse-hubzilla-9cd1dabe73f7bd01473848f55cb4595494837ac9.tar.gz
volse-hubzilla-9cd1dabe73f7bd01473848f55cb4595494837ac9.tar.bz2
volse-hubzilla-9cd1dabe73f7bd01473848f55cb4595494837ac9.zip
have to do something about that return_url - but let's just plunge forward without it.
Diffstat (limited to 'include/security.php')
-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);