Commits

Ian Bicking  committed 160f474 Merge

Merged in mitchellrj/paste/double_slash_at_start_of_path_fix (pull request #10)

  • Participants
  • Parent commits 7f90a96, df2c357

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.
+
 1.7.5.1
 -------
 

File paste/httpserver.py

         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)