Skip to content

Commit

Permalink
fix: fixed drupal spoofing check
Browse files Browse the repository at this point in the history
  • Loading branch information
titanism committed Dec 11, 2024
1 parent a87ee47 commit 9dc9948
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helpers/is-arbitrary.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ function isArbitrary(session, headers, bodyStr) {
!['softfail', 'fail'].includes(session.spfFromHeader.status.result) &&
subject &&
(!headers.hasHeader('x-mailer') ||
headers.getFirst('x-mailer').toLowerCase().includes('drupal')) &&
!headers.getFirst('x-mailer').toLowerCase().includes('drupal')) &&
REGEX_SYSADMIN_SUBJECT.test(subject)
)
) {
Expand Down

0 comments on commit 9dc9948

Please sign in to comment.