Commit 92d09320 authored by Guido van Rossum's avatar Guido van Rossum

changed some commas into percent signs

parent edb21c4e
...@@ -6,7 +6,7 @@ requests to cgi-bin scripts. ...@@ -6,7 +6,7 @@ requests to cgi-bin scripts.
""" """
__version__ = "0.2" __version__ = "0.3"
import os import os
...@@ -89,14 +89,14 @@ class CGIHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler): ...@@ -89,14 +89,14 @@ class CGIHTTPRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
scriptname = dir + '/' + script scriptname = dir + '/' + script
scriptfile = self.translate_path(scriptname) scriptfile = self.translate_path(scriptname)
if not os.path.exists(scriptfile): if not os.path.exists(scriptfile):
self.send_error(404, "No such CGI script (%s)", `scriptname`) self.send_error(404, "No such CGI script (%s)" % `scriptname`)
return return
if not os.path.isfile(scriptfile): if not os.path.isfile(scriptfile):
self.send_error(403, "CGI script is not a plain file (%s)", self.send_error(403, "CGI script is not a plain file (%s)" %
`scriptname`) `scriptname`)
return return
if not executable(scriptfile): if not executable(scriptfile):
self.send_error(403, "CGI script is not executable (%s)", self.send_error(403, "CGI script is not executable (%s)" %
`scriptname`) `scriptname`)
return return
nobody = nobody_uid() nobody = nobody_uid()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment