Commit 31ba0635 authored by Julian Rother's avatar Julian Rother

Fixed #347

parent bfcd82ce
......@@ -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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment