Skip to content

Commit 11be15a

Browse files
committed
inline field into the charpred
1 parent f71a64b commit 11be15a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

javascript/ql/lib/semmle/javascript/security/dataflow/CodeInjectionCustomizations.qll

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@ module CodeInjection {
5353

5454
/** An expression parsed by the `gray-matter` library. */
5555
class GrayMatterSink extends Sink {
56-
API::CallNode call;
57-
5856
GrayMatterSink() {
59-
call = DataFlow::moduleImport("gray-matter").getACall() and
60-
this = call.getArgument(0) and
61-
// if the js/javascript engine is set, then we assume they are set to something safe.
62-
not exists(call.getParameter(1).getMember("engines").getMember(["js", "javascript"]))
57+
exists(API::CallNode call |
58+
call = DataFlow::moduleImport("gray-matter").getACall() and
59+
this = call.getArgument(0) and
60+
// if the js/javascript engine is set, then we assume they are set to something safe.
61+
not exists(call.getParameter(1).getMember("engines").getMember(["js", "javascript"]))
62+
)
6363
}
6464
}
6565

0 commit comments

Comments
 (0)