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 {
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
You can’t perform that action at this time.
0 commit comments