Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/techsneeze/dmarcts-report-viewer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthäus Wander <mail@wander.science>2021-06-07 01:40:56 +0300
committerMatthäus Wander <mail@wander.science>2021-06-07 01:40:56 +0300
commit4eade684bdf868e513178e59e9f16567389789aa (patch)
tree5c6299e66cfcc2ec441fa34b32aa6817b31db292
parent1e13d7784f621b1a2ed64354346ce8a7a07426cd (diff)
show <policy_published> in XML report viewer
-rw-r--r--dmarcts-report-viewer-report-data.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/dmarcts-report-viewer-report-data.php b/dmarcts-report-viewer-report-data.php
index 5c862cd..11e049c 100644
--- a/dmarcts-report-viewer-report-data.php
+++ b/dmarcts-report-viewer-report-data.php
@@ -221,6 +221,11 @@ function formatXML($raw_xml, $reportnumber) {
$html .= "<div id='report_metadata' onmouseover='highlight(this);' onmouseout='unhighlight(this);' onclick='pin(this)'><pre><code class='xml'>" . $out . "</code></pre></div>";
+ $out = $dom->saveXML($dom->getElementsByTagName("policy_published")[0]);
+ $out = htmlspecialchars($out);
+
+ $html .= "<div id='policy_published' onmouseover='highlight(this);' onmouseout='unhighlight(this);' onclick='pin(this)'><pre><code class='xml'>" . $out . "</code></pre></div>";
+
$records = $dom->getElementsByTagName("record");
$i = 0;
// $i++;