Commit d486c5cdb1c1c3feff7dec3a9a833f679c2ba9c5

Authored by Benjamin Renard
1 parent 1a92b96f

Fix pb with & in description field of a TT or a catalog #10184

php/classes/SharedObjectHeaderFile.php
@@ -117,7 +117,7 @@ class SharedObjectHeaderFile { @@ -117,7 +117,7 @@ class SharedObjectHeaderFile {
117 if (count($infoNodes) == 0) 117 if (count($infoNodes) == 0)
118 return ""; 118 return "";
119 119
120 - $infoNodes->item(0)->nodeValue = $infoValue; 120 + $infoNodes->item(0)->textContent = $infoValue;
121 121
122 $this->doc->save($this->filePath); 122 $this->doc->save($this->filePath);
123 } 123 }
php/classes/TimeTableMgr.php
@@ -756,7 +756,7 @@ class TimeTableMgr extends AmdaObjectMgr @@ -756,7 +756,7 @@ class TimeTableMgr extends AmdaObjectMgr
756 $descriptionNode = $descriptionNodes->item(0); 756 $descriptionNode = $descriptionNodes->item(0);
757 } 757 }
758 758
759 - $descriptionNode->nodeValue = $newDescription; 759 + $descriptionNode->textContent = $newDescription;
760 } 760 }
761 761
762 $dstFilePath = $dst_path . "/" . $newId . ".xml"; 762 $dstFilePath = $dst_path . "/" . $newId . ".xml";