Decode path as utf8

This commit is contained in:
shortcutme 2019-03-15 23:58:18 +01:00
parent b216e42397
commit 2f4dec45a6
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -91,7 +91,7 @@ class UiServer:
# Handle WSGI request # Handle WSGI request
def handleRequest(self, env, start_response): def handleRequest(self, env, start_response):
path = env["PATH_INFO"] path = bytes(env["PATH_INFO"], "raw-unicode-escape").decode("utf8")
if env.get("QUERY_STRING"): if env.get("QUERY_STRING"):
get = dict(cgi.parse_qsl(env['QUERY_STRING'])) get = dict(cgi.parse_qsl(env['QUERY_STRING']))
else: else: