Merge pull request #6873 from britlog/unsubscribe-encoding

Fix encoding error
This commit is contained in:
Rushabh Mehta 2019-02-07 07:05:44 +05:30 committed by GitHub
commit 9bb0f63ce8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -137,7 +137,7 @@ def unsubscribe(email, name):
return
primary_action = frappe.utils.get_url() + "/api/method/frappe.email.doctype.newsletter.newsletter.confirmed_unsubscribe"+\
"?" + get_signed_params({"email": email, "name":name})
"?" + get_signed_params({"email": email, "name":name.encode('utf-8')})
return_confirmation_page(email, name, primary_action)