Code

Fix to CGI top-level index (thanks Juergen Hermann)
authorrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Mon, 29 Oct 2001 23:55:44 +0000 (23:55 +0000)
committerrichard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2>
Mon, 29 Oct 2001 23:55:44 +0000 (23:55 +0000)
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@347 57a73879-2fb5-44c3-a270-3262357dd7e2

cgi-bin/roundup.cgi
roundup-server

index 78e915a5bfef43d5013ad6c0ae79513528f6ff65..c8b1030b823c464a0730f3de8099c52c3d4ebf87 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.14 2001-10-27 00:22:35 richard Exp $
+# $Id: roundup.cgi,v 1.15 2001-10-29 23:55:44 richard Exp $
 
 # python version check
 import sys
@@ -90,7 +90,7 @@ def main(out, err):
         for instance in ROUNDUP_INSTANCE_HOMES.keys():
             w('<li><a href="%s/%s/index">%s</a>\n'%(
                 os.environ['SCRIPT_NAME'], urllib.quote(instance),
-                instance))
+                cgi.escape(instance)))
         w('</ol></body></html>')
 
 #
@@ -111,6 +111,9 @@ sys.stdout, sys.stderr = out, err
 
 #
 # $Log: not supported by cvs2svn $
+# Revision 1.14  2001/10/27 00:22:35  richard
+# Fixed some URL issues in roundup.cgi, again thanks Juergen Hermann.
+#
 # Revision 1.13  2001/10/05 02:23:24  richard
 #  . roundup-admin create now prompts for property info if none is supplied
 #    on the command-line.
index 1309088706555de111c5c3d9db6963370453a23c..c8b83cdc6ff166ce72a8ee6279937758b7082789 100755 (executable)
@@ -20,7 +20,7 @@
 
 Based on CGIHTTPServer in the Python library.
 
-$Id: roundup-server,v 1.16 2001-10-27 00:12:21 richard Exp $
+$Id: roundup-server,v 1.17 2001-10-29 23:55:44 richard Exp $
 
 """
 import sys
@@ -109,7 +109,7 @@ class RoundupRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
         w('<body><h1>Roundup instances index</h1><ol>\n')
         for instance in self.ROUNDUP_INSTANCE_HOMES.keys():
             w('<li><a href="%s/index">%s</a>\n'%(urllib.quote(instance),
-                instance))
+                cgi.escape(instance)))
         w('</ol></body></html>')
 
     def inner_run_cgi(self):
@@ -261,6 +261,9 @@ if __name__ == '__main__':
 
 #
 # $Log: not supported by cvs2svn $
+# Revision 1.16  2001/10/27 00:12:21  richard
+# Fixed roundup-server for windows, thanks Juergen Hermann.
+#
 # Revision 1.15  2001/10/12 02:23:26  richard
 # Didn't clean up after myself :)
 #