Permalink
Browse files

Quick Fix on the xloadtree code about bad html specialchars escaping …

…and xml encoding
  • Loading branch information...
1 parent 942f7e2 commit c5d4865fdc57d7fb747c78acbe0e54c3e69170a4 @ioguix ioguix committed Sep 29, 2010
Showing with 2 additions and 2 deletions.
  1. +1 −1 classes/Misc.php
  2. +1 −1 xloadtree/xtree2.js
View
@@ -1833,7 +1833,7 @@ function printTreeXML(&$treedata, &$attrs) {
header("Content-Type: text/xml");
header("Cache-Control: no-cache");
- echo "<?xml version=\"1.0\"?>\n";
+ echo "<?xml version=\"1.0\" encoding=\"", htmlspecialchars($lang['appcharset']), "\"?>\n";
echo "<tree>\n";
}
View
@@ -257,7 +257,7 @@ var webFXTreeHandler = {
},
textToHtml: function (s) {
- return String(s).replace(/&|<|>|\n|\"\u00A0/g, this._textToHtml);
+ return String(s).replace(/&|<|>|\n|\"|\u00A0/g, this._textToHtml);
},
_textToHtml: function (s) {

0 comments on commit c5d4865

Please sign in to comment.