File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
javascript/ql/lib/semmle/javascript/security/dataflow Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -53,13 +53,13 @@ module CodeInjection {
53
53
54
54
/** An expression parsed by the `gray-matter` library. */
55
55
class GrayMatterSink extends Sink {
56
- API:: CallNode call ;
57
-
58
56
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
+ )
63
63
}
64
64
}
65
65
You can’t perform that action at this time.
0 commit comments