Back in May, Gene Christian posted (roughly) the following patch, which
he needed for Quixote to work with Xitami. I dropped the ball and never
checked in his patch. Can anyone tell me if it's still needed?
--- http_request.py 30 Oct 2002 20:59:10 -0000 1.53
+++ http_request.py 20 Nov 2002 15:48:44 -0000
@@ -134,7 +134,17 @@
if path.startswith(script):
path = path[len(script):]
self.environ['PATH_INFO'] = path
-
+
+ # Xitami seems to mangle SCRIPT_NAME: it leaves PATH_INFO
+ # appended to SCRIPT_NAME. This removes the PATH_INFO data from
+ # SCRIPT_NAME
+ if (web_server.find('Xitami') != -1):
+ script = environ['SCRIPT_NAME']
+ path = environ['PATH_INFO']
+ if script.endswith(path):
+ script = script[:0-len(path)]
+ self.environ['SCRIPT_NAME'] = script
+
def add_form_value (self, key, value):
if self.form.has_key(key):
found = self.form[key]
Thanks --
Greg
--
Greg Ward - software developer gward@mems-exchange.org
MEMS Exchange http://www.mems-exchange.org