From: Johannes Gijsbers Date: Sat, 21 Aug 2004 10:43:29 +0000 (+0000) Subject: Patch #1011123: Use urllib.quote() instead of cgi.escape() for encoding the X-Git-Tag: v2.4a3~170 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6d63a8dd09a3be6b5afd7a327bf86bca6be6ff0d;p=thirdparty%2FPython%2Fcpython.git Patch #1011123: Use urllib.quote() instead of cgi.escape() for encoding the href attribute in list_directory(). This fixes the links for legal Unix filenames such as 'a"b'. --- diff --git a/Lib/SimpleHTTPServer.py b/Lib/SimpleHTTPServer.py index d58f52fda0dd..93662ab1948a 100644 --- a/Lib/SimpleHTTPServer.py +++ b/Lib/SimpleHTTPServer.py @@ -105,7 +105,7 @@ class SimpleHTTPRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler): f.write("
\n\n
\n") length = f.tell() f.seek(0)