Skip to content

Commit aaef4ef

Browse files
haby0smowton
andauthored
Update java/ql/src/experimental/Security/CWE/CWE-348/UseOfLessTrustedSourceLib.qll
Co-authored-by: Chris Smowton <[email protected]>
1 parent 4543247 commit aaef4ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/ql/src/experimental/Security/CWE/CWE-348/UseOfLessTrustedSourceLib.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ private class CompareSink extends UseOfLessTrustedSink {
5656
ma.getMethod().getDeclaringType() instanceof TypeString and
5757
ma.getMethod().getNumberOfParameters() = 1 and
5858
ma.getQualifier() = this.asExpr() and
59-
ma.getArgument(0).(CompileTimeConstantExpr).getStringValue().toLowerCase() in ["", "unknown"]
59+
not ma.getArgument(0).(CompileTimeConstantExpr).getStringValue().toLowerCase() in ["", "unknown"]
6060
)
6161
or
6262
exists(MethodAccess ma, int i |

0 commit comments

Comments
 (0)