Richard Mitchell  committed df2c357

Fixed parsing of URL paths starting with multiple slashes.

  • Participants
  • Parent commits b06eed4
  • Branches double_slash_at_start_of_path_fix

Comments (0)

Files changed (2)

File docs/news.txt

   just like normal request bodies are wrapped, keeping WSGI
   applications from over-reading from the socket.
+* Fixed parsing of paths beginning with multiple forward slashes.

File paste/

         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)