summaryrefslogtreecommitdiff
path: root/addons/auth_oauth
diff options
context:
space:
mode:
authorDenis Ledoux <dle@odoo.com>2014-06-16 22:52:50 +0200
committerDenis Ledoux <dle@odoo.com>2014-06-16 22:52:50 +0200
commita3cfe1728d048ee23d8c7a41c0f1df8a70f0aeec (patch)
treec230ebe3bbae99c0b870f801371936f7b73cce09 /addons/auth_oauth
parent2db6a0080f9eeac7030d6d2d856574f2192d8aa5 (diff)
[FIX] auth_oauth: unquote redirect url from state
This is related to 2db6a0080f9eeac7030d6d2d856574f2192d8aa5. Looks like Firefox auto unquote, but not Chrome
Diffstat (limited to 'addons/auth_oauth')
-rw-r--r--addons/auth_oauth/controllers/main.py2
1 files changed, 1 insertions, 1 deletions
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):