Skip to content

Commit 0000c72

Browse files
committed
Remove attempt at avoiding duplicate alerts
1 parent 3ef7a09 commit 0000c72

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

go/ql/src/Security/CWE-020/IncompleteHostnameRegexp.ql

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,6 @@ module IncompleteHostNameRegexpConfig implements DataFlow::ConfigSig {
8484
exists(Expr e |
8585
e = source.asExpr() and
8686
isIncompleteHostNameRegexpPattern(e.getStringValue(), hostPart)
87-
|
88-
e instanceof StringLit
89-
or
90-
e instanceof AddExpr and
91-
not isIncompleteHostNameRegexpPattern(e.(AddExpr).getAnOperand().getStringValue(), _)
9287
)
9388
}
9489

0 commit comments

Comments
 (0)