From 65119d69ab34e89e50860ac551b87db6ad40ce69 Mon Sep 17 00:00:00 2001 From: rr- Date: Tue, 16 Aug 2016 20:10:02 +0200 Subject: [PATCH] server/rest: urldecode incoming paths --- server/szurubooru/rest/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/szurubooru/rest/app.py b/server/szurubooru/rest/app.py index 79a59abb..199d0980 100644 --- a/server/szurubooru/rest/app.py +++ b/server/szurubooru/rest/app.py @@ -30,7 +30,7 @@ def _get_headers(env): def _create_context(env): method = env['REQUEST_METHOD'] - path = '/' + env['PATH_INFO'].lstrip('/') + path = urllib.parse.unquote('/' + env['PATH_INFO'].lstrip('/')) headers = _get_headers(env) files = {}