Update javascript/ql/lib/semmle/javascript/frameworks/ShellJS.qll

Co-authored-by: Asger F <asgerf@github.com>
This commit is contained in:
Napalys Klicius
2025-05-02 13:39:46 +02:00
committed by GitHub
parent d4b5ef6a66
commit 871e93d9fe

View File

@@ -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)