mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-05 20:51:15 -07:00
parent
ad2ec0e2bf
commit
68dc095c83
1 changed files with 4 additions and 1 deletions
|
@ -176,7 +176,10 @@ def check_auth(*args, **kwargs):
|
|||
raise cherrypy.HTTPRedirect(plexpy.HTTP_ROOT)
|
||||
|
||||
else:
|
||||
redirect_uri = cherrypy.request.wsgi_environ['REQUEST_URI']
|
||||
if cherrypy.request.headers.get('X-Requested-With') == 'XMLHttpRequest':
|
||||
raise cherrypy.HTTPError(401)
|
||||
|
||||
redirect_uri = cherrypy.request.path_info
|
||||
if redirect_uri:
|
||||
redirect_uri = '?redirect_uri=' + quote(redirect_uri)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue