Code

add the path to the cgi-bin request
authorrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Wed, 4 Sep 2002 04:30:58 +0000 (04:30 +0000)
committerrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Wed, 4 Sep 2002 04:30:58 +0000 (04:30 +0000)
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1059 57a73879-2fb5-44c3-a270-3262357dd7e2

cgi-bin/roundup.cgi

index a34cf3a3a81e575c0d63fab64a7e5ebf1f61d814..5e9791e5963de33f76d66051e1f557d872a88ce3 100755 (executable)
@@ -16,7 +16,7 @@
 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 # 
-# $Id: roundup.cgi,v 1.27 2002-09-04 02:11:00 richard Exp $
+# $Id: roundup.cgi,v 1.28 2002-09-04 04:30:58 richard Exp $
 
 # python version check
 from roundup import version_check
@@ -126,10 +126,11 @@ def main(out, err):
     import os, string
     import roundup.instance
     path = string.split(os.environ.get('PATH_INFO', '/'), '/')
+    request = RequestWrapper(out)
+    request.path = os.environ.get('PATH_INFO', '/')
     instance = path[1]
     os.environ['INSTANCE_NAME'] = instance
     os.environ['PATH_INFO'] = string.join(path[2:], '/')
-    request = RequestWrapper(out)
     if ROUNDUP_INSTANCE_HOMES.has_key(instance):
         # redirect if we need a trailing '/'
         if len(path) == 2:
@@ -198,6 +199,9 @@ LOG.close()
 
 #
 # $Log: not supported by cvs2svn $
+# Revision 1.27  2002/09/04 02:11:00  richard
+# *** empty log message ***
+#
 # Revision 1.26  2002/09/04 01:58:33  richard
 # fix cgi client importing
 #