mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-07 13:41:15 -07:00
Strip HTTP root on login redirect
This commit is contained in:
parent
6a534ade9f
commit
5b5ccee23b
1 changed files with 3 additions and 0 deletions
|
@ -422,4 +422,7 @@ class AuthController(object):
|
||||||
|
|
||||||
@cherrypy.expose
|
@cherrypy.expose
|
||||||
def redirect(self, redirect_uri='', *args, **kwargs):
|
def redirect(self, redirect_uri='', *args, **kwargs):
|
||||||
|
root = plexpy.HTTP_ROOT.rstrip('/')
|
||||||
|
if redirect_uri.startswith(root):
|
||||||
|
redirect_uri = redirect_uri[len(root):]
|
||||||
raise cherrypy.HTTPRedirect(plexpy.HTTP_ROOT + redirect_uri.strip('/'))
|
raise cherrypy.HTTPRedirect(plexpy.HTTP_ROOT + redirect_uri.strip('/'))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue