mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Remove another unused variable in the redirect code.
This commit is contained in:
@@ -1739,7 +1739,6 @@ class User( BaseUIController, UsesFormDefinitionsMixin, CreatesUsersMixin, Creat
|
||||
|
||||
def __get_redirect_url( self, redirect ):
|
||||
root_url = url_for( '/', qualified=True )
|
||||
redirect_url = '' # always start with redirect_url being empty
|
||||
# compare urls, to prevent a redirect from pointing (directly) outside of galaxy
|
||||
# or to enter a logout/login loop
|
||||
if not util.compare_urls( root_url, redirect, compare_path=False ) or util.compare_urls( url_for( controller='user', action='logout', qualified=True ), redirect ):
|
||||
|
||||
Reference in New Issue
Block a user