Created
July 8, 2022 18:27
-
-
Save andreypopp/feda13257f7240872c7cf80a3a7143e1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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