Skip to content

Commit

Permalink
Do NOT decode xml, as this causes odd behviour with special characters
Browse files Browse the repository at this point in the history
 - é is replace by é somehow
  • Loading branch information
torinfo committed Jul 13, 2022
1 parent 2c7531e commit 7610233
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions website_code/php/xmlInspector.php
Expand Up @@ -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++)
{
Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit 7610233

Please sign in to comment.