summaryrefslogtreecommitdiff
path: root/Mailman/pythonlib/smtplib.py
diff options
context:
space:
mode:
authorbwarsaw2000-09-15 20:50:47 +0000
committerbwarsaw2000-09-15 20:50:47 +0000
commit0cbe09f82acbe4163fdff5870ea6d7ec6db367f8 (patch)
tree5e9154d2bb0eb111e1a6c55990e3b82977e5e62f /Mailman/pythonlib/smtplib.py
parent9265600f5af93260c8cc31f05fbc49e4b18ee102 (diff)
downloadmailman-0cbe09f82acbe4163fdff5870ea6d7ec6db367f8.tar.gz
mailman-0cbe09f82acbe4163fdff5870ea6d7ec6db367f8.tar.zst
mailman-0cbe09f82acbe4163fdff5870ea6d7ec6db367f8.zip
ChangeOptions(): A previous change retained empty fields by passing
cgi.FieldStorage constructor keep_blank_values=1. Without this, it isn't possible to set a text field to the empty string. However, this breaks admin password changing on the General page because the test was for key presence. We now also check that the key's value is non-empty (meaning empty admin passwords are no longer allowed). Also, when changing the admin password, make sure that the new password isn't empty, and string.strip() the new and confirm password. Finally, use AddErrorMessage() more consistently. AddErrorMessage(): make the tag (i.e. "Warning: ") settable via arguments.
Diffstat (limited to 'Mailman/pythonlib/smtplib.py')
0 files changed, 0 insertions, 0 deletions