Bug #282500 --> if an email contains a form element then flag it as a potential email scam.

This commit is contained in:
scott%scott-macgregor.org 2005-02-16 22:17:35 +00:00
Родитель 265483ac6e
Коммит e73ef39895
1 изменённых файлов: 5 добавлений и 0 удалений

Просмотреть файл

@ -69,6 +69,11 @@ function isMsgEmailScam(aUrl)
for (var index = 0; index < anchorNodes.length && !isEmailScam; index++)
isEmailScam = isPhishingURL(anchorNodes[index], true);
// if an e-mail contains a form element, then assume the message is a phishing attack.
// Legitimate sites should not be using forms inside of e-mail.
if (!isEmailScam && msgDocument.getElementsByTagName("form").length > 0)
isEmailScam = true;
// we'll add more checks here as our detector matures....
return isEmailScam;
}