Skip to content

Commit 0277601

Browse files
committed
Eliminate false positives caused by .
1 parent 9e63aa9 commit 0277601

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/ql/src/experimental/Security/CWE-348/ClientSuppliedIpUsedInSecurityCheckLib.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ private class CompareSink extends ClientSuppliedIpUsedInSecurityCheckSink {
124124
compare.getLeft() = this.asExpr()
125125
or
126126
compare.getComparator(0) = this.asExpr() and
127-
not compare.getLeft().(StrConst).getText() in ["%", ","]
127+
not compare.getLeft().(StrConst).getText() in ["%", ",", "."]
128128
)
129129
)
130130
}

0 commit comments

Comments
 (0)