From 41c954b30951b1a30f8684cde16b5a56768b1ffa Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Sat, 23 Feb 2013 09:08:08 +0100 Subject: [PATCH] Another try on URL quoting. --- dosagelib/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dosagelib/util.py b/dosagelib/util.py index 75874b85c..7afa39a98 100644 --- a/dosagelib/util.py +++ b/dosagelib/util.py @@ -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:]