Re: [Semanticscuttle-devel] Reasons for SemanticScuttle fix for apache 1.3
Brought to you by:
cweiske
From: Christian W. <cw...@cw...> - 2011-07-23 06:19:56
|
Hello Benjamin, > I'm wondering about a commit you did in 2009-03-05 which breaks some > systems. Do you remember the bug number or the reasons why you did > that? Maybe have the old conversation with the user who needed that? There is also the same problem with the commit from 2008-06-04 - it breaks at least one CGI system. Knowing the circumstances for the fix would help me isolating the problem. 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 diff --git a/constants.inc.php b/constants.inc.php index cadaffa..824561f 100644 @@ -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"]; +} + ?> -- Regards/Mit freundlichen Grüßen Christian Weiske -=≡ Geeking around in the name of science since 1982 ≡=- |