diff options
| author | Christophe Simonis <chs@odoo.com> | 2014-06-19 15:44:07 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2014-06-19 15:44:07 +0200 |
| commit | 5087612d1da85a8661f7aa124969b2ee9e155c10 (patch) | |
| tree | b876bacb13667313d5a070932b486b243d12295f /addons/auth_oauth/controllers | |
| parent | e59077b0f9b5dfcba4eb9da273c2656f4da29a75 (diff) | |
| parent | bf53aeda9436310f493a77fc24f8cc35f362ec5b (diff) | |
[MERGE] forward port of branch saas-3 up to bf53aed
Diffstat (limited to 'addons/auth_oauth/controllers')
| -rw-r--r-- | addons/auth_oauth/controllers/main.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/auth_oauth/controllers/main.py b/addons/auth_oauth/controllers/main.py index 4fca426ffc0..e4d3e18792a 100644 --- a/addons/auth_oauth/controllers/main.py +++ b/addons/auth_oauth/controllers/main.py @@ -70,7 +70,7 @@ class OAuthLogin(openerp.addons.web.controllers.main.Home): state = dict( d=request.session.db, p=provider['id'], - r=request.httprequest.full_path + r=werkzeug.url_quote_plus(request.httprequest.full_path) ) token = request.params.get('token') if token: @@ -139,7 +139,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['r']) if state.get('r') else False url = '/web' if redirect and not redirect.startswith('/auth_oauth/signin') and \ (not redirect.startswith('/web/login') or 'redirect' in urlparse.urlsplit(redirect).query): |
