summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbwarsaw2002-09-17 21:51:23 +0000
committerbwarsaw2002-09-17 21:51:23 +0000
commitb312ddcf560c0dabc5b2fda7f7bc7d0bfe259a77 (patch)
tree2329e46d960c4fd9c7a38ddca20a87f593610837
parenta75882d90900862c842e7dfda23f9fddaa371562 (diff)
downloadmailman-b312ddcf560c0dabc5b2fda7f7bc7d0bfe259a77.tar.gz
mailman-b312ddcf560c0dabc5b2fda7f7bc7d0bfe259a77.tar.zst
mailman-b312ddcf560c0dabc5b2fda7f7bc7d0bfe259a77.zip
process_form(): When getting the member's full name out of the web
form, we need to convert it to a unicode string using the charset of the language of the page.
-rw-r--r--Mailman/Cgi/subscribe.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Mailman/Cgi/subscribe.py b/Mailman/Cgi/subscribe.py
index 0b5a9d635..c2dfe5cd0 100644
--- a/Mailman/Cgi/subscribe.py
+++ b/Mailman/Cgi/subscribe.py
@@ -108,9 +108,9 @@ def process_form(mlist, doc, cgidata, lang):
if not email:
results.append(_('You must supply a valid email address.'))
- # The full name of the subscribee, optional
fullname = cgidata.getvalue('fullname', '')
-
+ # Canonicalize the full name
+ fullname = Utils.canonstr(fullname, lang)
# Who was doing the subscribing?
remote = os.environ.get('REMOTE_HOST',
os.environ.get('REMOTE_ADDR',