diff options
| author | Denis Ledoux <dle@odoo.com> | 2014-06-16 22:52:50 +0200 |
|---|---|---|
| committer | Denis Ledoux <dle@odoo.com> | 2014-06-16 22:52:50 +0200 |
| commit | a3cfe1728d048ee23d8c7a41c0f1df8a70f0aeec (patch) | |
| tree | c230ebe3bbae99c0b870f801371936f7b73cce09 /addons/auth_oauth/controllers/main.py | |
| parent | 2db6a0080f9eeac7030d6d2d856574f2192d8aa5 (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/controllers/main.py')
| -rw-r--r-- | addons/auth_oauth/controllers/main.py | 2 |
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): |
