since this is now usable, protect the displayed delivery reports from XSS injection

This commit is contained in:
redmatrix 2015-09-22 04:08:03 -07:00
parent 2869ccfe39
commit 4b13f0e025

View File

@ -32,7 +32,7 @@ function dreport_content(&$a) {
foreach($r as $rr) {
$name = escape_tags(substr($rr['dreport_recip'],strpos($rr['dreport_recip'],' ')));
$o .= '<tr><td>' . $name . '</td><td>' . $rr['dreport_result'] . '</td><td>' . $rr['dreport_time'] . '</td></tr>';
$o .= '<tr><td>' . $name . '</td><td>' . escape_tags($rr['dreport_result']) . '</td><td>' . escape_tags($rr['dreport_time']) . '</td></tr>';
}
$o .= '</table>';