From d9217584061980e5311874711f6fd3a10d300ec1 Mon Sep 17 00:00:00 2001 From: Mihai Moldovan Date: Wed, 17 Apr 2024 12:05:33 +0200 Subject: [PATCH] js/mailhops.js: lower case Received-SPF state. Some MTAs pass a non-lowercase state, so make sure we sanitize it before we select the icon or the description. --- js/mailhops.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/mailhops.js b/js/mailhops.js index 46e8822..d041643 100644 --- a/js/mailhops.js +++ b/js/mailhops.js @@ -308,8 +308,8 @@ class MailHops { auth.push({ type: 'SPF', color: 'green', - icon: '/images/auth/' + headerSPFArr[0] + '.png', - copy: header_spf + '\n' + MailHopsUtils.spf(headerSPFArr[0]).trim() + icon: '/images/auth/' + headerSPFArr[0].toLowerCase () + '.png', + copy: header_spf + '\n' + MailHopsUtils.spf(headerSPFArr[0].toLowerCase ()).trim() }); } //Authentication-Results