Commit d486c5cdb1c1c3feff7dec3a9a833f679c2ba9c5
1 parent
1a92b96f
Exists in
master
and in
17 other branches
Fix pb with & in description field of a TT or a catalog #10184
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
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"; |