All pastes #20332 Raw Edit

Untitled

public text v1 · immutable
#20332 ·published 2005-08-18 17:42 UTC
rendered paste body
Index: twisted/web2/static.py
===================================================================
--- twisted/web2/static.py      (revision 14251)
+++ twisted/web2/static.py      (working copy)
@@ -6,7 +6,7 @@
 """
 
 # System Imports
-import os, time, stat
+import os, time, stat, urllib
 
 # Sibling Imports
 from twisted.web2 import http_headers, resource
@@ -177,7 +177,7 @@
             return None, ()
 
         if path:
-            fpath = self.fp.child(path)
+            fpath = self.fp.child(urllib.unquote(path))
         else:
             fpath = self.fp.childSearchPreauth(*self.indexNames)
             if fpath is None: