Ticket #393 (defect)
Opened 3 years ago
Last modified 3 years ago
Encoded slashes ("/") are incorrectly unquoted
Status: closed (fixed)
| Reported by: | cogumbreiro@users.sf.net | Assigned to: | rdelon |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | CherryPy code | Keywords: | |
| Cc: |
If you have a page with a name that contains a slash ("/") it will be quoted into the url "%2F" example: page/name
Will be converted into page%2Fname
Now if I create a page with this name, for example using default() then cherrypy will incorrectly unquote it and call the object page.name which is not what I am expecting.
Here's the culprit:
_cphttptools.py:235 -> path = urllib.unquote(path)
for example "dir/foo%2Fbar" will be converted to "/dir/foo/bar"
I guess the real path should be left unquoted and when the object path was being created then the elements would be quoted.
Change History
11/16/05 12:47:21: Modified by fumanchu
- status changed from new to closed.
- resolution set to fixed.
11/16/05 12:47:43: Modified by fumanchu
Fixed in [826] (in trunk only).


Fixed in [896] (in trunk only).