1
0
mirror of https://github.com/MailHops/mailhops-plugin.git synced 2025-05-21 08:30:23 -07:00

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.
This commit is contained in:
Mihai Moldovan 2024-04-17 12:05:33 +02:00
parent 72ac705df2
commit d921758406

View File

@ -308,8 +308,8 @@ class MailHops {
auth.push({ auth.push({
type: 'SPF', type: 'SPF',
color: 'green', color: 'green',
icon: '/images/auth/' + headerSPFArr[0] + '.png', icon: '/images/auth/' + headerSPFArr[0].toLowerCase () + '.png',
copy: header_spf + '\n' + MailHopsUtils.spf(headerSPFArr[0]).trim() copy: header_spf + '\n' + MailHopsUtils.spf(headerSPFArr[0].toLowerCase ()).trim()
}); });
} }
//Authentication-Results //Authentication-Results