Skip to content

Commit

Permalink
Merge pull request #70 from w3c/jgraham/path_unquote
Browse files Browse the repository at this point in the history
Unencode the path when converting to a filesystem path; r=zcorpan
  • Loading branch information
Ms2ger committed Nov 26, 2015
2 parents 33ec0bb + b7cfbd4 commit 5dc7c7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wptserve/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def filesystem_path(base_path, request, url_base="/"):
if base_path is None:
base_path = request.doc_root

path = request.url_parts.path
path = urllib.unquote(request.url_parts.path)

if path.startswith(url_base):
path = path[len(url_base):]
Expand Down

0 comments on commit 5dc7c7c

Please sign in to comment.