summaryrefslogtreecommitdiff
path: root/Mailman/pythonlib
diff options
context:
space:
mode:
authorhmeland1999-03-02 15:07:23 +0000
committerhmeland1999-03-02 15:07:23 +0000
commit8d003021f545a44cc2a7ba0f1a8fefcf83f2b0f9 (patch)
tree286cefa063e1920d896aa1556f65398ab4482cfc /Mailman/pythonlib
parent3bbf868d4f5ab576397ed554d839f31f190e4abe (diff)
downloadmailman-8d003021f545a44cc2a7ba0f1a8fefcf83f2b0f9.tar.gz
mailman-8d003021f545a44cc2a7ba0f1a8fefcf83f2b0f9.tar.zst
mailman-8d003021f545a44cc2a7ba0f1a8fefcf83f2b0f9.zip
MailList.HasExplicitDest(): Protect use of user-supplied regexp. If
the regexp specifying a list alias doesn't compile, match against the re.escape(invalid_regexp) instead. MailList.parse_matching_header_opt(): Only return triples having compileable regexps. If some line in `bounce_matching_headers' results in an invalid regexp, this is logged and ignored (possibly a lot of times, until the misconfiguration is fixed). Also, the re.split() on the lines in `bounce_matching_headers' is now called with third arg `maxsplit' set to 1 to avoid splitting the header lines more than once. I don't have any Python prior to 1.5.1 handy, but my copy of the Library Reference states that this argument was ignored in the original 1.5 release -- implying that it existed.
Diffstat (limited to 'Mailman/pythonlib')
0 files changed, 0 insertions, 0 deletions