Commits

Virgil Dupras committed ba9a223

Fixed paypal backend which, since a python upgrade, crashed on urlopen.

Comments (0)

Files changed (1)

             encoded_params = '&'.join(encoded_params)
             url = "https://www.paypal.com/cgi-bin/webscr"
             try:
-                connection = urlopen(url, encoded_params)
+                connection = urlopen(url, encoded_params.encode('latin-1'))
             except URLError:
                 error("IPN verification crashed", raise_error=True)
             response = str(connection.read(), 'latin-1')