]> gitweb.fluxo.info Git - semanticscuttle.git/commitdiff
Bug fix: correct problem with PATH_INFO (Thanks to Montie)
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>
Wed, 4 Jun 2008 08:11:11 +0000 (08:11 +0000)
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>
Wed, 4 Jun 2008 08:11:11 +0000 (08:11 +0000)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@135 b3834d28-1941-0410-a4f8-b48e95affb8f

constants.inc.php

index cadaffa4299e55432ad587f7452696f3d50af573..824561f447df50b64704fc89765a46f4022791cc 100644 (file)
@@ -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"]; 
+}
+
 ?>