From cad5806d6b546b4d77713c14d82280d31b90a65b Mon Sep 17 00:00:00 2001 From: marcus Date: Tue, 5 Aug 2008 16:58:46 +0000 Subject: 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 --- engine/lib/elgglib.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'engine/lib/elgglib.php') 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) { -- cgit v1.2.3