Skip to content

Commit 1925ea2

Browse files
committed
Ignore phash scores that are not past threshold
1 parent 28818d4 commit 1925ea2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/scripts/build_findings.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,11 @@ function diagHasLivePath(diag) {
138138
if (live) { score+=1; reasons.push("LIVE"); }
139139
if (liveViaPath) { reasons.push("PATH"); }
140140

141+
if (img != null && img < phashThr) {
142+
score = 0;
143+
reasons = [];
144+
}
145+
141146
if (score >= minScore) {
142147
out.push({
143148
domain: dom,

0 commit comments

Comments
 (0)