Skip to content

Commit d5f3008

Browse files
authored
Update dmarcts-report-viewer-report-data.php
Adjusting based on Issue #89
1 parent 8a1d882 commit d5f3008

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

dmarcts-report-viewer-report-data.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,11 @@ function tmpl_reportData($reportnumber, $reports, $host_lookup = 1) {
5757
$row = $reports[$reportnumber];
5858

5959
$row['raw_xml'] = formatXML($row['raw_xml'], $reportnumber);
60-
$row = array_map('html_escape', $row);
60+
foreach ($row as $k => $v) {
61+
if ($k !== 'raw_xml') {
62+
$row[$k] = html_escape($v);
63+
}
64+
}
6165

6266
$reportdata[] = "<div id='report_desc_container' class='center reportdesc_container'>";
6367
$reportdata[] = "<div id='report_desc' class='center reportdesc' class='hilighted' onmouseover='highlight(this);' onmouseout='unhighlight(this);' onclick='pin(this)'>Report from ".$row['org']." for ".$row['domain']."<br>". format_date($row['mindate'], $cookie_options['date_format']). " to ".format_date($row['maxdate'], $cookie_options['date_format'])."<br> Policies: adkim=" . $row['policy_adkim'] . ", aspf=" . $row['policy_aspf'] . ", p=" . $row['policy_p'] . ", sp=" . $row['policy_sp'] . ", pct=" . $row['policy_pct'] . "</div>";

0 commit comments

Comments
 (0)