Skip to content

Commit 871e93d

Browse files
Napalysasgerf
andauthored
Update javascript/ql/lib/semmle/javascript/frameworks/ShellJS.qll
Co-authored-by: Asger F <asgerf@github.com>
1 parent d4b5ef6 commit 871e93d

File tree

1 file changed

+1
-4
lines changed
  • javascript/ql/lib/semmle/javascript/frameworks

1 file changed

+1
-4
lines changed

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

+1-4
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,7 @@ module ShellJS {
163163
if name = "cmd"
164164
then
165165
result = this.getArgument(_) and
166-
not (
167-
result = this.getLastArgument() and
168-
exists(this.getOptionsArg())
169-
)
166+
not result = this.getOptionsArg()
170167
else
171168
// For exec/asyncExec: only first argument is command
172169
result = this.getArgument(0)

0 commit comments

Comments
 (0)