Skip to content
Snippets Groups Projects
Commit 31ba0635 authored by Julian Rother's avatar Julian Rother
Browse files

Fixed #347

parent bfcd82ce
No related branches found
No related tags found
No related merge requests found
......@@ -14,6 +14,7 @@ import math
import locale
import base64
import json
import urllib
locale.setlocale(locale.LC_ALL, 'de_DE.utf8')
......@@ -369,7 +370,7 @@ def logout():
def auth(): # For use with nginx auth_request
if 'X-Original-Uri' not in request.headers:
return 'Internal Server Error', 500
url = request.headers['X-Original-Uri'].lstrip(config['VIDEOPREFIX'])
url = urllib.parse.unquote(request.headers['X-Original-Uri']).lstrip(config['VIDEOPREFIX'])
if request.cookies.get('tracking', '') and request.cookies['tracking'].isdigit():
cookie = int(request.cookies['tracking'])
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment