From a3cfe1728d048ee23d8c7a41c0f1df8a70f0aeec Mon Sep 17 00:00:00 2001 From: Denis Ledoux Date: Mon, 16 Jun 2014 22:52:50 +0200 Subject: [PATCH] [FIX] auth_oauth: unquote redirect url from state This is related to 2db6a0080f9eeac7030d6d2d856574f2192d8aa5. Looks like Firefox auto unquote, but not Chrome --- addons/auth_oauth/controllers/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/auth_oauth/controllers/main.py b/addons/auth_oauth/controllers/main.py index e3bd6c13580..6743cf17e7b 100644 --- a/addons/auth_oauth/controllers/main.py +++ b/addons/auth_oauth/controllers/main.py @@ -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):