summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-03-05 09:24:21 +0000
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2009-03-05 09:24:21 +0000
commite1455c23c1d39542bf51810417eb91fee521c6c1 (patch)
treec2318176e227caf53d55e18cf268733b48fad7c5
parentf14f1024fea1445deb687dc3f67530e579907809 (diff)
downloadsemanticscuttle-e1455c23c1d39542bf51810417eb91fee521c6c1.tar.gz
semanticscuttle-e1455c23c1d39542bf51810417eb91fee521c6c1.tar.bz2
Bug fix: correct bug for APACHE 1.3
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@306 b3834d28-1941-0410-a4f8-b48e95affb8f
-rw-r--r--constants.inc.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/constants.inc.php b/constants.inc.php
index 681a141..c198165 100644
--- a/constants.inc.php
+++ b/constants.inc.php
@@ -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"]);
+}
?>