mirror of
https://github.com/github/codeql.git
synced 2026-04-26 09:15:12 +02:00
Update javascript/ql/lib/semmle/javascript/frameworks/ShellJS.qll
Co-authored-by: Asger F <asgerf@github.com>
This commit is contained in:
@@ -163,10 +163,7 @@ module ShellJS {
|
||||
if name = "cmd"
|
||||
then
|
||||
result = this.getArgument(_) and
|
||||
not (
|
||||
result = this.getLastArgument() and
|
||||
exists(this.getOptionsArg())
|
||||
)
|
||||
not result = this.getOptionsArg()
|
||||
else
|
||||
// For exec/asyncExec: only first argument is command
|
||||
result = this.getArgument(0)
|
||||
|
||||
Reference in New Issue
Block a user