diff options
| author | Christophe Simonis <chs@odoo.com> | 2017-04-24 12:53:34 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2017-04-24 12:53:34 +0200 |
| commit | 64b7d4e8a8df180bc598e2df56992d373e23b44b (patch) | |
| tree | e5683925601ffc151d185b374cd8b4a713d23def /addons/payment_paypal/controllers/main.py | |
| parent | 7350a50a2eb41f8df595b4791edfe5ee3f06de63 (diff) | |
| parent | 3f6e573c67a2ef6cbaf9bbeda1d0a2f286809266 (diff) | |
[MERGE] forward port branch 10.0 up to 3f6e573c67a
Diffstat (limited to 'addons/payment_paypal/controllers/main.py')
| -rw-r--r-- | addons/payment_paypal/controllers/main.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/payment_paypal/controllers/main.py b/addons/payment_paypal/controllers/main.py index 2fefb1417ef..00359c4d038 100644 --- a/addons/payment_paypal/controllers/main.py +++ b/addons/payment_paypal/controllers/main.py @@ -23,7 +23,7 @@ class PaypalController(http.Controller): """ Extract the return URL from the data coming from paypal. """ return_url = post.pop('return_url', '') if not return_url: - custom = json.loads(post.pop('custom', False) or post.pop('cm', False) or '{}') + custom = json.loads(urllib.unquote_plus(post.pop('custom', False) or post.pop('cm', False) or '{}')) return_url = custom.get('return_url', '/') return return_url |
