Skip to content

Commit 22bdcf0

Browse files
committed
PS: Force lower casing on method edges.
1 parent 4df449d commit 22bdcf0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

powershell/ql/lib/semmle/code/powershell/ApiGraphs.qll

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,9 @@ module API {
543543

544544
cached
545545
predicate methodEdge(Node pred, string name, Node succ) {
546-
exists(DataFlow::CallNode call | succ = MkMethodAccessNode(call) and name = call.getName() |
546+
exists(DataFlow::CallNode call |
547+
succ = MkMethodAccessNode(call) and name = call.getName().toLowerCase()
548+
|
547549
pred = getForwardEndNode(getALocalSourceStrict(call.getQualifier()))
548550
)
549551
}

0 commit comments

Comments
 (0)