Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save andreypopp/feda13257f7240872c7cf80a3a7143e1 to your computer and use it in GitHub Desktop.
Save andreypopp/feda13257f7240872c7cf80a3a7143e1 to your computer and use it in GitHub Desktop.
diff --git a/src/rex.file/src/rex/file/map.py b/src/rex.file/src/rex/file/map.py
index e04dc5a45..8bc4af0a0 100644
--- a/src/rex.file/src/rex/file/map.py
+++ b/src/rex.file/src/rex/file/map.py
@@ -8,6 +8,7 @@ from rex.web import authorize, trusted, confine
from rex.urlmap import Map
from rex.port import Port
from rex.attach import get_storage
+import urllib.parse
from webob.exc import HTTPNotFound, HTTPUnauthorized, HTTPForbidden
@@ -59,7 +60,7 @@ class FileRenderer:
self.authorize(req)
with confine(req, self):
try:
- identity = req.query_string
+ identity = urllib.parse.unquote(req.query_string)
data = self.port.produce(('*', identity)).data[0]
if not data:
raise HTTPNotFound()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment