Skip to content
Snippets Groups Projects
Unverified Commit e7b12a09 authored by Julian Rother's avatar Julian Rother Committed by Andreas Valder
Browse files

Fixed #347

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