From 6d63a8dd09a3be6b5afd7a327bf86bca6be6ff0d Mon Sep 17 00:00:00 2001 From: Johannes Gijsbers Date: Sat, 21 Aug 2004 10:43:29 +0000 Subject: 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'. --- Lib/SimpleHTTPServer.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Lib/SimpleHTTPServer.py b/Lib/SimpleHTTPServer.py index d58f52f..93662ab 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) -- cgit v0.12