correctly weed out benign calls inside attributes

This commit is contained in:
Erik Krogh Kristensen
2019-11-11 15:17:57 +01:00
parent b0fecbce28
commit 67b38ed301
3 changed files with 23 additions and 1 deletions

View File

@@ -45,7 +45,7 @@ predicate benignContext(Expr e) {
or
// weeds out calls inside HTML-attributes.
e.getParent() instanceof CodeInAttribute or
e.getParent().(ExprStmt).getParent() instanceof CodeInAttribute or
// and JSX-attributes.
e = any(JSXAttribute attr).getValue() or