Skip to content

Commit

Permalink
Suppress taints in instance properties
Browse files Browse the repository at this point in the history
  • Loading branch information
muglug committed Jul 2, 2020
1 parent 67b2edc commit cf1a8ac
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1178,6 +1178,12 @@ private static function taintProperty(
$context->vars_in_scope[$var_id] = $stmt_var_type;
}
} else {
if (\in_array('TaintedInput', $statements_analyzer->getSuppressedIssues())) {
$assignment_value_type->parent_nodes = [];
return;
}


$code_location = new CodeLocation($statements_analyzer->getSource(), $stmt);

$localized_property_node = new TaintNode(
Expand Down

0 comments on commit cf1a8ac

Please sign in to comment.