Skip to content

Commit

Permalink
Actual, actual 7.5.1 release
Browse files Browse the repository at this point in the history
  • Loading branch information
seanthegeek committed Oct 29, 2024
1 parent d765696 commit f3b9851
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions checkdmarc/bimi.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ def parse_bimi_record(

pairs = BIMI_TAG_VALUE_REGEX.findall(record)
tags = OrderedDict()
certificate_provided = False
hash_match = False

for pair in pairs:
tag = pair[0].lower().strip()
Expand Down Expand Up @@ -565,7 +565,6 @@ def parse_bimi_record(
response.raise_for_status()
pem_bytes = response.content
cert_metadata = get_certificate_metadata(pem_bytes, domain=domain)
hash_match = False
if (
image_metadata["sha256_hash"]
== cert_metadata["logodata_sha256_hash"]
Expand All @@ -577,7 +576,7 @@ def parse_bimi_record(
)
except Exception as e:
warnings.append(f"Unable to download mark certificate - {str(e)}")
certificate_provided == hash_match and cert_metadata["valid"]
certificate_provided = hash_match and cert_metadata["valid"]
if not certificate_provided:
warnings.append(
"Most providers will not display a BIMI image without a valid mark certificate"
Expand Down

0 comments on commit f3b9851

Please sign in to comment.