summaryrefslogtreecommitdiffstatshomepage
path: root/constants.inc.php
diff options
context:
space:
mode:
authorGravatar mensonge2008-06-04 08:11:11 +0000
committerGravatar mensonge2008-06-04 08:11:11 +0000
commit074cfd0a8cb5851b1c10fe9e3baf71777326e123 (patch)
treed5d772f1d6f5e40ca07a6a03ec7bb41e5383ea93 /constants.inc.php
parent3df04e1ce435380d8560faaf67a91b88b7cfb3f6 (diff)
downloadscuttle-074cfd0a8cb5851b1c10fe9e3baf71777326e123.tar.gz
scuttle-074cfd0a8cb5851b1c10fe9e3baf71777326e123.zip
Bug fix: correct problem with PATH_INFO (Thanks to Montie)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@135 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'constants.inc.php')
-rw-r--r--constants.inc.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/constants.inc.php b/constants.inc.php
index cadaffa..824561f 100644
--- a/constants.inc.php
+++ b/constants.inc.php
@@ -16,4 +16,10 @@ define('PAGE_BOOKMARKS', "bookmarks");
// INSTALLATION_ID is based on directory DB and used as prefix (in session and cookie) to prevent mutual login for different installations on the same host server
define('INSTALLATION_ID', md5($GLOBALS['dbname'].$GLOBALS['tableprefix']));
+
+// Correct bug with PATH_INFO (maybe for Apache 1)
+if(strlen($_SERVER["PATH_INFO"])<strlen($_SERVER["ORIG_PATH_INFO"])) {
+ $_SERVER["PATH_INFO"] = $_SERVER["ORIG_PATH_INFO"];
+}
+
?>