Skip to content

Commit 0662013

Browse files
Update csharp/ql/src/Security Features/CWE-327/InsecureSQLConnection.ql
Co-authored-by: Mathias Vorreiter Pedersen <[email protected]>
1 parent e0ee60f commit 0662013

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

csharp/ql/src/Security Features/CWE-327/InsecureSQLConnection.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ predicate isEncryptTrue(Source source, Sink sink) {
5252
or
5353
exists(ObjectCreation oc, Expr e | oc.getRuntimeArgument(0) = sink.asExpr() |
5454
getInfoForInitializedConnEncryption(oc, e) and
55-
e.getValue().toString().toLowerCase() = "true"
55+
e.getValue().toLowerCase() = "true"
5656
)
5757
}
5858

0 commit comments

Comments
 (0)