Another try on URL quoting.

This commit is contained in:
Bastian Kleineidam 2013-02-23 09:08:08 +01:00
parent 23b4fd6aa5
commit 41c954b309

View file

@ -193,7 +193,7 @@ def normaliseURL(url):
segments = pu[2].split('/')
while segments and segments[0] in ('', '..'):
del segments[0]
pu[2] = quote(unquote('/' + '/'.join(segments)), safechars=_nopathquote_chars)
pu[2] = '/' + '/'.join(segments)
# remove leading '&' from query
if pu[4].startswith('&'):
pu[4] = pu[4][1:]