From 76102335567448524880ba9bd9da0df49b27ccf1 Mon Sep 17 00:00:00 2001 From: Tom Reijnders Date: Wed, 13 Jul 2022 15:34:13 +0200 Subject: [PATCH] Do NOT decode xml, as this causes odd behviour with special characters - é is replace by &eacute; somehow --- website_code/php/xmlInspector.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/website_code/php/xmlInspector.php b/website_code/php/xmlInspector.php index 4ddb37698..5451df53c 100644 --- a/website_code/php/xmlInspector.php +++ b/website_code/php/xmlInspector.php @@ -89,6 +89,9 @@ public function getImageSequenceFiles() { $thisSeries->numLength = strlen((string)($thisSeries->firstImg->num)) + $thisSeries->firstImg->addZeros; } + else{ + $thisSeries->numLength = 0; + } // Generate filenames and add to file array for ($i=$thisSeries->firstImg->num; $i<=$thisSeries->lastImg->num; $i++) { @@ -276,9 +279,6 @@ public function loadTemplateXML($name) } $xml = file_get_contents($name); - // decode filenames in the XML - $xml = rawurldecode($xml); - $xml = html_entity_decode($xml); if (!$this->isValidXml($xml)) { // Try and fix it ? _debug("Invalid XML found; trying to repair");