From 989dbe94d923456889b02f3556b5df0e29e3e9e4 Mon Sep 17 00:00:00 2001 From: Sean Whalen Date: Thu, 26 Dec 2024 17:14:44 -0500 Subject: [PATCH] 5.7.11 - Do not treat subdomains ss base domains in SPF `a` mechanisms (Close [#151](https://github.com/domainaware/checkdmarc/issues/155)) --- .gitignore | 2 ++ CHANGELOG.md | 5 +++++ checkdmarc/_constants.py | 2 +- checkdmarc/spf.py | 2 +- 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index b8171eb..bb9d6ea 100644 --- a/.gitignore +++ b/.gitignore @@ -116,3 +116,5 @@ output/ # ignore data files *.dat + +scratch.py diff --git a/CHANGELOG.md b/CHANGELOG.md index 0b9d03d..ed71d50 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,11 @@ Changelog ========= +5.7.11 +------ + +- Do not treat subdomains ss base domains in SPF `a` mechanisms (Close [#151](https://github.com/domainaware/checkdmarc/issues/155)) + 5.7.10 ------ diff --git a/checkdmarc/_constants.py b/checkdmarc/_constants.py index 2a0306a..1d652ab 100644 --- a/checkdmarc/_constants.py +++ b/checkdmarc/_constants.py @@ -18,7 +18,7 @@ See the License for the specific language governing permissions and limitations under the License.""" -__version__ = "5.7.10" +__version__ = "5.7.11" OS = platform.system() OS_RELEASE = platform.release() diff --git a/checkdmarc/spf.py b/checkdmarc/spf.py index 05db653..f68dd27 100644 --- a/checkdmarc/spf.py +++ b/checkdmarc/spf.py @@ -334,7 +334,7 @@ def parse_spf_record( if value == "": value = domain cidr = None - value = domain.split("/") + value = value.split("/") value = value[0] if len(value) == 2: cidr = value[1]