Commits

Anonymous committed aab9e0c

fix broken nonascii urls handling

Comments (0)

Files changed (1)

 from datetime import datetime, timedelta
 import time
 import urllib2
+import urllib
 
 import phpserialize
 
         if '__sape_delimiter__' in self.links:
             self.links_delimiter = self.links['__sape_delimiter__']
 
-        uri_links = self.links.get(self.request_uri, None)
+        uri_links = self.links.get(urllib.quote(
+            self.request_uri.encode('utf-8')), None)
 
         if isinstance(uri_links, dict):
             self.links_page = uri_links.values()