Skip to content

Commit 0b07e53

Browse files
committed
fix false positive in phishing detection on some PDF files
1 parent 6b812b2 commit 0b07e53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/webview/phishDetector.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ function checkPhishingStatus() {
145145

146146
if (loc.split("#")[0].split("/").length > 5) {
147147
debug_phishing("long path found");
148-
phishingScore += Math.max(loc.split("/").length * 0.05, 0.25);
148+
phishingScore += Math.max(Math.min(loc.split("/").length * 0.05, 0.75), 0.25);
149149
}
150150

151151
//CANTINA - penalize locations with lots of dots

0 commit comments

Comments
 (0)