From 4415ac40f70bc5812f8493fa4a8472c48a284dc1 Mon Sep 17 00:00:00 2001 From: = <=> Date: Sat, 22 Sep 2012 19:43:43 +0100 Subject: [PATCH] Fixed mix add flow --- core/utils/url.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/utils/url.py b/core/utils/url.py index be28796..0df5f54 100644 --- a/core/utils/url.py +++ b/core/utils/url.py @@ -1,4 +1,7 @@ +import urlparse + __author__ = 'fergalm' def urlclean(url): - ret = url.replace('//', '/') + #remove double slashes + ret = urlparse.urlparse(url).path.replace('//', '/') return ret \ No newline at end of file