Skip to content

Commit ac7d3a6

Browse files
author
Richard Jones
committed
Fix to CGI top-level index (thanks Juergen Hermann)
1 parent 8f28e37 commit ac7d3a6

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

cgi-bin/roundup.cgi

Lines changed: 5 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.14 2001-10-27 00:22:35 richard Exp $
19+
# $Id: roundup.cgi,v 1.15 2001-10-29 23:55:44 richard Exp $
2020

2121
# python version check
2222
import sys
@@ -90,7 +90,7 @@ def main(out, err):
9090
for instance in ROUNDUP_INSTANCE_HOMES.keys():
9191
w('<li><a href="%s/%s/index">%s</a>\n'%(
9292
os.environ['SCRIPT_NAME'], urllib.quote(instance),
93-
instance))
93+
cgi.escape(instance)))
9494
w('</ol></body></html>')
9595

9696
#
@@ -111,6 +111,9 @@ sys.stdout, sys.stderr = out, err
111111

112112
#
113113
# $Log: not supported by cvs2svn $
114+
# Revision 1.14 2001/10/27 00:22:35 richard
115+
# Fixed some URL issues in roundup.cgi, again thanks Juergen Hermann.
116+
#
114117
# Revision 1.13 2001/10/05 02:23:24 richard
115118
# . roundup-admin create now prompts for property info if none is supplied
116119
# on the command-line.

roundup-server

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
2121
Based on CGIHTTPServer in the Python library.
2222
23-
$Id: roundup-server,v 1.16 2001-10-27 00:12:21 richard Exp $
23+
$Id: roundup-server,v 1.17 2001-10-29 23:55:44 richard Exp $
2424
2525
"""
2626
import sys
@@ -109,7 +109,7 @@ class RoundupRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
109109
w('<body><h1>Roundup instances index</h1><ol>\n')
110110
for instance in self.ROUNDUP_INSTANCE_HOMES.keys():
111111
w('<li><a href="%s/index">%s</a>\n'%(urllib.quote(instance),
112-
instance))
112+
cgi.escape(instance)))
113113
w('</ol></body></html>')
114114

115115
def inner_run_cgi(self):
@@ -261,6 +261,9 @@ if __name__ == '__main__':
261261

262262
#
263263
# $Log: not supported by cvs2svn $
264+
# Revision 1.16 2001/10/27 00:12:21 richard
265+
# Fixed roundup-server for windows, thanks Juergen Hermann.
266+
#
264267
# Revision 1.15 2001/10/12 02:23:26 richard
265268
# Didn't clean up after myself :)
266269
#

0 commit comments

Comments
 (0)