diff options
| author | Damien Bouvy <dbo@odoo.com> | 2016-12-19 18:11:46 +0100 |
|---|---|---|
| committer | Damien Bouvy <dbo@odoo.com> | 2016-12-19 18:11:46 +0100 |
| commit | 737cca3ec7f4e6bffa04fd2086816d57ba652a2f (patch) | |
| tree | 88b95bbac4f413edf7218325f2a650f6e95e8c9e /addons/payment_paypal/controllers/main.py | |
| parent | 8b64bf768248eb39c017079c21029f69b18824fa (diff) | |
Revert "[FIX] payment_paypal: html-decode PDT responses"
This reverts commit 8b64bf768248eb39c017079c21029f69b18824fa.
This should have been fixed in 8.0, a moment of distraction made me
push it in 10.0.
This is not the branch you are looking for, carry on.
Diffstat (limited to 'addons/payment_paypal/controllers/main.py')
| -rw-r--r-- | addons/payment_paypal/controllers/main.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/addons/payment_paypal/controllers/main.py b/addons/payment_paypal/controllers/main.py index 7e4aac4c036..621b598d6bc 100644 --- a/addons/payment_paypal/controllers/main.py +++ b/addons/payment_paypal/controllers/main.py @@ -3,7 +3,6 @@ import json import logging import pprint -import urllib import urllib2 import werkzeug @@ -27,7 +26,7 @@ class PaypalController(http.Controller): return return_url def _parse_pdt_response(self, response): - """ Parse a text response for a PDT verification . + """ Parse a text reponse for a PDT verification . :param response str: text response, structured in the following way: STATUS\nkey1=value1\nkey2=value2...\n @@ -38,9 +37,6 @@ class PaypalController(http.Controller): lines = filter(None, response.split('\n')) status = lines.pop(0) pdt_post = dict(line.split('=', 1) for line in lines) - # html unescape - for post in pdt_post: - pdt_post[post] = urllib.unquote_plus(pdt_post[post]).decode('utf8') return status, pdt_post def paypal_validate_data(self, **post): |
