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 03:22:13 +0300
committerMatthäus Wander <mail@wander.science>2021-06-07 03:22:13 +0300
commit5441522c666bce767be9f44be87e87926eb8864f (patch)
tree1e55bf40de9c89f41e51fa6ca3f99c930f7eed69
parent94b47e466f5fe91b36f38dbb7b56c76ad28c1372 (diff)
regression fix in output html
-rw-r--r--dmarcts-report-viewer-report-data.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/dmarcts-report-viewer-report-data.php b/dmarcts-report-viewer-report-data.php
index 53825ba..2260f48 100644
--- a/dmarcts-report-viewer-report-data.php
+++ b/dmarcts-report-viewer-report-data.php
@@ -213,13 +213,13 @@ function formatXML($raw_xml, $reportnumber) {
// Extract <?xml ...> from raw_xml, if it matches the regex pattern.
if (preg_match("/<\?xml([^?>]*)\?>/", $raw_xml, $matches)) {
- $html .= "<pre><code class='xml'>" . htmlspecialchars($matches[0]) . "</code</pre>";
+ $html .= "<pre><code class='xml'>" . htmlspecialchars($matches[0]) . "</code></pre>";
}
// Extract root <feedback> from raw_xml.
$rootName = $dom->firstChild->localName;
if (preg_match("/<". $rootName ."([^>]*)>/", $raw_xml, $matches)) {
- $html .= "<pre><code class='xml'>" . htmlspecialchars($matches[0]) . "</code</pre>";
+ $html .= "<pre><code class='xml'>" . htmlspecialchars($matches[0]) . "</code></pre>";
}
$out = $dom->saveXML($dom->getElementsByTagName("report_metadata")[0]);
@@ -247,7 +247,7 @@ function formatXML($raw_xml, $reportnumber) {
// Extract closing </feedback> from raw_xml.
if (preg_match("/<\/". $rootName .">/", $raw_xml, $matches)) {
- $html .= "<pre><code class='xml'>" . htmlspecialchars($matches[0]) . "</code</pre>";
+ $html .= "<pre><code class='xml'>" . htmlspecialchars($matches[0]) . "</code></pre>";
}
return $html;