mirror of
https://github.com/github/codeql.git
synced 2026-04-29 10:45:15 +02:00
inline field into the charpred
This commit is contained in:
@@ -53,13 +53,13 @@ module CodeInjection {
|
||||
|
||||
/** An expression parsed by the `gray-matter` library. */
|
||||
class GrayMatterSink extends Sink {
|
||||
API::CallNode call;
|
||||
|
||||
GrayMatterSink() {
|
||||
call = DataFlow::moduleImport("gray-matter").getACall() and
|
||||
this = call.getArgument(0) and
|
||||
// if the js/javascript engine is set, then we assume they are set to something safe.
|
||||
not exists(call.getParameter(1).getMember("engines").getMember(["js", "javascript"]))
|
||||
exists(API::CallNode call |
|
||||
call = DataFlow::moduleImport("gray-matter").getACall() and
|
||||
this = call.getArgument(0) and
|
||||
// if the js/javascript engine is set, then we assume they are set to something safe.
|
||||
not exists(call.getParameter(1).getMember("engines").getMember(["js", "javascript"]))
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user