This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: correct display of pathnames in SimpleHTTPServer
Type: Stage:
Components: Library (Lib) Versions: Python 2.4
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: georg.brandl, salty-horse
Priority: normal Keywords: patch

Created on 2005-11-18 19:03 by salty-horse, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
SimpleHTTPServer-displaypath.patch salty-horse, 2005-11-18 19:03
Messages (2)
msg49077 - (view) Author: Ori Avtalion (salty-horse) * Date: 2005-11-18 19:03
The patch makes the simple file server display path
names that includes reserved and unsafe characters.
Previously, a path named dir&a was displayed as dir%26a
since "self.path" was processed by urllib.quote. The
"path" parameter, however, is untouched.
msg49078 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2005-12-16 19:37
Logged In: YES 
user_id=1188172

Thanks for the patch. There was an error in it, as the
parameter "path" contains the local path and "self.path" the
path relative to the server root. I committed a corrected
version in rev. 41714/41715.
History
Date User Action Args
2022-04-11 14:56:14adminsetgithub: 42611
2005-11-18 19:03:19salty-horsecreate