From 9fae57022f1164ea72196dd8e91f73a0463427d8 Mon Sep 17 00:00:00 2001 From: Richard Mitchell Date: Thu, 2 Aug 2012 11:28:01 +0100 Subject: Fixed parsing of URL paths starting with multiple slashes. --- paste/httpserver.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'paste/httpserver.py') diff --git a/paste/httpserver.py b/paste/httpserver.py index cd21713..ffc94c3 100755 --- a/paste/httpserver.py +++ b/paste/httpserver.py @@ -176,7 +176,8 @@ class WSGIHandlerMixin: argument can be used to override any settings. """ - (scheme, netloc, path, query, fragment) = urlparse.urlsplit(self.path) + dummy_url = 'http://dummy%s' % (self.path,) + (scheme, netloc, path, query, fragment) = urlparse.urlsplit(dummy_url) path = urllib.unquote(path) endslash = path.endswith('/') path = posixpath.normpath(path) -- cgit v1.2.1