aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-05 16:58:46 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-05 16:58:46 +0000
commitcad5806d6b546b4d77713c14d82280d31b90a65b (patch)
tree8e7cea39a3f95f7d25b83f08aecfe2745e8a8a5e /engine
parent3736bc66532e3f506c62bf6edf8d98c029cd0713 (diff)
downloadelgg-cad5806d6b546b4d77713c14d82280d31b90a65b.tar.gz
elgg-cad5806d6b546b4d77713c14d82280d31b90a65b.tar.bz2
Log though will now not store a url relating to an action... it is now possible to log in again if you are logged out! :D
git-svn-id: https://code.elgg.org/elgg/trunk@1718 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/elgglib.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index e2a599511..a4302676f 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -28,7 +28,9 @@
global $CONFIG;
if (!headers_sent()) {
- $_SESSION['last_forward_from'] = current_page_url();
+ $current_page = current_page_url();
+ if (strpos($current_page, $CONFIG->wwwroot . "action") ===false)
+ $_SESSION['last_forward_from'] = current_page_url();
$_SESSION['messages'] = system_messages();
if (substr_count($location, 'http://') == 0) {