function _clamav_sanitise_output in ClamAV 7
Sanitise output from clamscan.
Parameters
array $output: Lines of output from clamscan executable.
Return value
string Sanitised output.
1 call to _clamav_sanitise_output()
- _clamav_scan_via_exec in ./
clamav.inc - Scan a single file using a clamav executable.
File
- ./
clamav.inc, line 331 - clamav.inc API and helper functions for the ClamAV module.
Code
function _clamav_sanitise_output($output) {
if (!is_array($output)) {
$output = array(
$output,
);
}
$output = array_map('check_plain', $output);
return implode('<br />', $output);
}