summaryrefslogtreecommitdiff
path: root/src/SemanticScuttle
diff options
context:
space:
mode:
authorcweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-10-27 20:42:12 +0000
committercweiske <cweiske@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-10-27 20:42:12 +0000
commit485bb8912b03d84c6c143281678c1421db77fd20 (patch)
treeaee582f2e74758be196c553c9f9da675e808156b /src/SemanticScuttle
parent4bf8c2fff97a5f68a53d81ed4eed0005ac4f422c (diff)
downloadsemanticscuttle-485bb8912b03d84c6c143281678c1421db77fd20.tar.gz
semanticscuttle-485bb8912b03d84c6c143281678c1421db77fd20.tar.bz2
prevent js file to get stored in lastUrl
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@442 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'src/SemanticScuttle')
-rw-r--r--src/SemanticScuttle/header.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/SemanticScuttle/header.php b/src/SemanticScuttle/header.php
index 1b32643..5b411d9 100644
--- a/src/SemanticScuttle/header.php
+++ b/src/SemanticScuttle/header.php
@@ -63,7 +63,14 @@ if (!defined('UNIT_TEST_MODE')) {
if (isset($_SESSION['lastUrl'])) {
$GLOBALS['lastUrl'] = $_SESSION['lastUrl'];
}
- $_SESSION['lastUrl'] = $_SERVER['REQUEST_URI'];
+ //this here is hacky, but currently the only way to
+ // differentiate between css/js php files and normal
+ // http files
+ if (!isset($GLOBALS['saveInLastUrl'])
+ || $GLOBALS['saveInLastUrl']
+ ) {
+ $_SESSION['lastUrl'] = $_SERVER['REQUEST_URI'];
+ }
}
}