]> gitweb.fluxo.info Git - semanticscuttle.git/commitdiff
Bug fix: correct bug for APACHE 1.3
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>
Thu, 5 Mar 2009 09:24:21 +0000 (09:24 +0000)
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>
Thu, 5 Mar 2009 09:24:21 +0000 (09:24 +0000)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@306 b3834d28-1941-0410-a4f8-b48e95affb8f

constants.inc.php

index 681a14139df8d1829e2aae79bd801ea5f75b43fe..c198165c2d854779f260c87be05633bc5bedaf25 100644 (file)
@@ -47,10 +47,14 @@ define('PAGE_WATCHLIST', "watchlist");
 // 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)
+// Correct bugs with PATH_INFO (maybe for Apache 1 or CGI) -- for 1&1 host...
 if(strlen($_SERVER["PATH_INFO"])<strlen($_SERVER["ORIG_PATH_INFO"])) {
        $_SERVER["PATH_INFO"] = $_SERVER["ORIG_PATH_INFO"];
 }
-
+if(strcasecmp($_SERVER["PATH_INFO"], $_SERVER["SCRIPT_NAME "]) == 0) {
+       unset($_SERVER["PATH_INFO"]);
+}
+if(strpos($_SERVER["PATH_INFO"], '.php') !== false) {
+       unset($_SERVER["PATH_INFO"]);
+}
 ?>