diff options
author | Mark Sapiro <mark@msapiro.net> | 2016-02-25 22:09:08 -0800 |
---|---|---|
committer | Mark Sapiro <mark@msapiro.net> | 2016-02-25 22:09:08 -0800 |
commit | a31d04a8b2bd1480cf774b00aeb8b1deb6469291 (patch) | |
tree | 7c0b1e0f2b1fa1763405ec5525bead0123e224c2 | |
parent | 12737ecf786a8d0315bc6a9a4448831cc19eead2 (diff) | |
download | mailman2-a31d04a8b2bd1480cf774b00aeb8b1deb6469291.tar.gz mailman2-a31d04a8b2bd1480cf774b00aeb8b1deb6469291.tar.xz mailman2-a31d04a8b2bd1480cf774b00aeb8b1deb6469291.zip |
Lower case domains for the Organizational Domain fix.
Diffstat (limited to '')
-rw-r--r-- | Mailman/Utils.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Mailman/Utils.py b/Mailman/Utils.py index 8a54bfc5..682f5058 100644 --- a/Mailman/Utils.py +++ b/Mailman/Utils.py @@ -1178,12 +1178,12 @@ get_org_dom.""" url, e) return for line in d.readlines(): - if not line or line.startswith(' ') or line.startswith('//'): + if not line.strip() or line.startswith(' ') or line.startswith('//'): continue line = re.sub(' .*', '', line.strip()) if not line: continue - parts = line.split('.') + parts = line.lower().split('.') if parts[0].startswith('!'): exc = True parts = [parts[0][1:]] + parts[1:] @@ -1206,7 +1206,7 @@ Domain which may be the same as the input.""" if not s_dict: get_suffixes(mm_cfg.DMARC_ORGANIZATIONAL_DOMAIN_DATA_URL) hits = [] - d = domain.split('.') + d = domain.lower().split('.') d.reverse() for k in s_dict.keys(): ks = k.split('.') |