1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 04:45:20 +01:00

Add sink for print_r

This commit is contained in:
Brown 2019-10-18 15:28:15 -04:00
parent 46b57cc0bb
commit 8978e5c7f1

View File

@ -274,6 +274,12 @@ class CallMap
$function_param->sink = Type\Union::TAINTED_INPUT_SHELL;
}
if ($arg_offset === 0
&& ($function_id === 'print_r')
) {
$function_param->sink = Type\Union::TAINTED_INPUT_HTML;
}
$function_param->signature_type = null;
$function_params[] = $function_param;