Skip to content

Commit 39c204a

Browse files
committed
JS: Treat string literals as source nodes
1 parent 80124df commit 39c204a

File tree

1 file changed

+2
-1
lines changed
  • javascript/ql/src/semmle/javascript/dataflow

1 file changed

+2
-1
lines changed

javascript/ql/src/semmle/javascript/dataflow/Sources.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,8 @@ module SourceNode {
321321
astNode instanceof ImportMetaExpr or
322322
astNode instanceof TaggedTemplateExpr or
323323
astNode instanceof Angular2::PipeRefExpr or
324-
astNode instanceof Angular2::TemplateVarRefExpr
324+
astNode instanceof Angular2::TemplateVarRefExpr or
325+
astNode instanceof StringLiteral
325326
)
326327
or
327328
DataFlow::parameterNode(this, _)

0 commit comments

Comments
 (0)