Skip to content

Commit 1e1e4c6

Browse files
committed
PS: Prettify.
1 parent 3759158 commit 1e1e4c6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

powershell/ql/lib/semmle/code/powershell/security/SqlInjectionCustomizations.qll

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,8 +79,7 @@ module SqlInjection {
7979
override string getSinkType() { result = "call to Invoke-Sqlcmd" }
8080

8181
override predicate allowImplicitRead(DataFlow::ContentSet cs) {
82-
cs.getAStoreContent().(DataFlow::Content::KnownKeyContent).getIndex().asString().toLowerCase() =
83-
query()
82+
cs.getAStoreContent().(DataFlow::Content::KnownKeyContent).getIndex().stringMatches(query())
8483
}
8584
}
8685

0 commit comments

Comments
 (0)