[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:
parent
2db6a0080f
commit
a3cfe1728d
|
@ -116,7 +116,7 @@ class OAuthController(http.Controller):
|
||||||
cr.commit()
|
cr.commit()
|
||||||
action = state.get('a')
|
action = state.get('a')
|
||||||
menu = state.get('m')
|
menu = state.get('m')
|
||||||
redirect = state.get('r')
|
redirect = werkzeug.url_unquote_plus(state.get('r'))
|
||||||
url = '/web'
|
url = '/web'
|
||||||
if redirect and not redirect.startswith('/auth_oauth/signin') and \
|
if redirect and not redirect.startswith('/auth_oauth/signin') and \
|
||||||
(not redirect.startswith('/web/login') or 'redirect' in urlparse.urlsplit(redirect).query):
|
(not redirect.startswith('/web/login') or 'redirect' in urlparse.urlsplit(redirect).query):
|
||||||
|
|
Loading…
Reference in New Issue