[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:
Denis Ledoux 2014-06-16 22:52:50 +02:00
parent 2db6a0080f
commit a3cfe1728d
1 changed files with 1 additions and 1 deletions

View File

@ -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):