diff options
| author | bwarsaw | 2000-09-15 20:50:47 +0000 |
|---|---|---|
| committer | bwarsaw | 2000-09-15 20:50:47 +0000 |
| commit | 0cbe09f82acbe4163fdff5870ea6d7ec6db367f8 (patch) | |
| tree | 5e9154d2bb0eb111e1a6c55990e3b82977e5e62f /Mailman/pythonlib/rfc822.py | |
| parent | 9265600f5af93260c8cc31f05fbc49e4b18ee102 (diff) | |
| download | mailman-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/rfc822.py')
0 files changed, 0 insertions, 0 deletions
