[FIX] auth_oauth: unquote redirect url from state
This is related to 2db6a0080f. Looks like Firefox auto unquote, but not Chrome
This commit is contained in:
@@ -116,7 +116,7 @@ class OAuthController(http.Controller):
|
||||
cr.commit()
|
||||
action = state.get('a')
|
||||
menu = state.get('m')
|
||||
redirect = state.get('r')
|
||||
redirect = werkzeug.url_unquote_plus(state.get('r'))
|
||||
url = '/web'
|
||||
if redirect and not redirect.startswith('/auth_oauth/signin') and \
|
||||
(not redirect.startswith('/web/login') or 'redirect' in urlparse.urlsplit(redirect).query):
|
||||
|
||||
Reference in New Issue
Block a user