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

SourceForge.net noreply at sourceforge.net
Wed Aug 18 03:12:29 CEST 2004


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

Category: Library (Lib)
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Niels Diepeveen (nielsdi)
Assigned to: Nobody/Anonymous (nobody)
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.


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

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