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");