Skip to content

Commit 2d9b3ae

Browse files
author
Richard Jones
committed
add the path to the cgi-bin request
1 parent 2dc1a64 commit 2d9b3ae

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

cgi-bin/roundup.cgi

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1717
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1818
#
19-
# $Id: roundup.cgi,v 1.27 2002-09-04 02:11:00 richard Exp $
19+
# $Id: roundup.cgi,v 1.28 2002-09-04 04:30:58 richard Exp $
2020

2121
# python version check
2222
from roundup import version_check
@@ -126,10 +126,11 @@ def main(out, err):
126126
import os, string
127127
import roundup.instance
128128
path = string.split(os.environ.get('PATH_INFO', '/'), '/')
129+
request = RequestWrapper(out)
130+
request.path = os.environ.get('PATH_INFO', '/')
129131
instance = path[1]
130132
os.environ['INSTANCE_NAME'] = instance
131133
os.environ['PATH_INFO'] = string.join(path[2:], '/')
132-
request = RequestWrapper(out)
133134
if ROUNDUP_INSTANCE_HOMES.has_key(instance):
134135
# redirect if we need a trailing '/'
135136
if len(path) == 2:
@@ -198,6 +199,9 @@ LOG.close()
198199

199200
#
200201
# $Log: not supported by cvs2svn $
202+
# Revision 1.27 2002/09/04 02:11:00 richard
203+
# *** empty log message ***
204+
#
201205
# Revision 1.26 2002/09/04 01:58:33 richard
202206
# fix cgi client importing
203207
#

0 commit comments

Comments
 (0)