We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b66c99b commit 7b4d2a9Copy full SHA for 7b4d2a9
1 file changed
powershell/ql/lib/semmle/code/powershell/security/CommandInjectionCustomizations.qll
@@ -103,7 +103,7 @@ module CommandInjection {
103
addscript.matchesName("AddScript") and
104
create.matchesName("Create") and
105
addscript.getQualifier().(InvokeMemberExpr) = create and
106
- create.getQualifier().(TypeNameExpr).getName() = "PowerShell"
+ create.getQualifier().(TypeNameExpr).getAName() = "PowerShell"
107
)
108
}
109
@@ -164,7 +164,7 @@ module CommandInjection {
164
exists(InvokeMemberExpr ie |
165
this.asExpr().getExpr() = ie.getAnArgument() and
166
ie.matchesName("Create") and
167
- ie.getQualifier().(TypeNameExpr).getName() = "ScriptBlock"
+ ie.getQualifier().(TypeNameExpr).getAName() = "ScriptBlock"
168
169
170
0 commit comments