mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-11 10:12:00 +08:00
fix(phising): Make detection lower case #1784
This commit is contained in:
parent
b1e5066110
commit
ffefc93e1f
1 changed files with 2 additions and 2 deletions
|
@ -50,9 +50,9 @@ class PhishingIndicator extends React.Component {
|
|||
// phishing attempt boils down to checking the `replyTo` attributes on
|
||||
// `Message` models from `MessageStore`.
|
||||
if (message && message.replyTo && message.replyTo.length !== 0) {
|
||||
const from = message.from[0].email
|
||||
const from = message.from[0].email.toLowerCase();
|
||||
const fromDomain = tld.registered(from.split('@')[1]);
|
||||
const replyTo = message.replyTo[0].email
|
||||
const replyTo = message.replyTo[0].email.toLowerCase();
|
||||
const replyToDomain = tld.registered(replyTo.split('@')[1]);
|
||||
if (replyToDomain !== fromDomain) {
|
||||
return (
|
||||
|
|
Loading…
Reference in a new issue