[Patches] [ python-Patches-1011123 ] Bad URL encoding in SimpleHTTPServer directory listing

SourceForge.net noreply at sourceforge.net
Sat Aug 21 12:44:34 CEST 2004


Patches item #1011123, was opened at 2004-08-18 03:12
Message generated for change (Comment added) made by jlgijsbers
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1011123&group_id=5470

Category: Library (Lib)
Group: None
>Status: Closed
>Resolution: Accepted
Priority: 5
Submitted By: Niels Diepeveen (nielsdi)
>Assigned to: Johannes Gijsbers (jlgijsbers)
Summary: Bad URL encoding in SimpleHTTPServer directory listing

Initial Comment:
The list_directory method of SimpleHTTPRequestHandler uses cgi.escape() to encode the filenames.
However, the HREF part should be encoded using urllib.quote(). This patch fixes that.


----------------------------------------------------------------------

>Comment By: Johannes Gijsbers (jlgijsbers)
Date: 2004-08-21 12:44

Message:
Logged In: YES 
user_id=469548

Checked in as rev 1.22 of SimpleHTTPServer.py. Thanks for
the patch!

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1011123&group_id=5470


More information about the Patches mailing list