mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-18 06:45:33 +00:00
Bug 326082 Get phishing detection to cope with tags within link text
p=me r=neil sr=bienvenu
This commit is contained in:
parent
6e81dc3f47
commit
f6480bf58c
@ -137,6 +137,11 @@ function isPhishingURL(aLinkNode, aSilentMode)
|
||||
function misMatchedHostWithLinkText(aLinkNode, aHrefURL, aLinkTextURL)
|
||||
{
|
||||
var linkNodeText = gatherTextUnder(aLinkNode);
|
||||
|
||||
// gatherTextUnder puts a space between each piece of text it gathers,
|
||||
// so strip the spaces out (see bug 326082 for details).
|
||||
linkNodeText = linkNodeText.replace(/ /g, "");
|
||||
|
||||
// only worry about http and https urls
|
||||
if (linkNodeText)
|
||||
{
|
||||
|
@ -135,6 +135,11 @@ function isPhishingURL(aLinkNode, aSilentMode, aHref)
|
||||
function misMatchedHostWithLinkText(aLinkNode, aHrefURL, aLinkTextURL)
|
||||
{
|
||||
var linkNodeText = gatherTextUnder(aLinkNode);
|
||||
|
||||
// gatherTextUnder puts a space between each piece of text it gathers,
|
||||
// so strip the spaces out (see bug 326082 for details).
|
||||
linkNodeText = linkNodeText.replace(/ /g, "");
|
||||
|
||||
// only worry about http and https urls
|
||||
if (linkNodeText)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user