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:
parent
46b57cc0bb
commit
8978e5c7f1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user