Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
MyKings committed Nov 26, 2015
1 parent 74045a8 commit b8fb655
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 14 deletions.
6 changes: 2 additions & 4 deletions demo/cn/asyncData/getNodes.php
Expand Up @@ -21,11 +21,9 @@
if ($pName==null) $pName = "";
else $pName = $pName.".";

$pId = str_replace("%<%", "&lt;", $pId);
$pId = str_replace("%>%", "&gt;", $pId);
$pId = htmlspecialchars($pId);

$pName = str_replace("%<%", "&lt;", $pName);
$pName = str_replace("%>%", "&gt;", $pName);
$pName = htmlspecialchars($pName);

//for ($i=1; $i<9999; $i++) {
// for ($j=1; $j<999; $j++) {
Expand Down
5 changes: 2 additions & 3 deletions demo/cn/asyncData/getNodesForBigData.php
Expand Up @@ -11,8 +11,7 @@
if ($pId==null || $pId=="") $pId = "0";
if ($pCount==null || $pCount=="") $pCount = "10";

$pId = str_replace("%<%", "&lt;", $pId);
$pId = str_replace("%>%", "&gt;", $pId);
$pId = htmlspecialchars($pId);

$max = (int)$pCount;
for ($i=1; $i<=$max; $i++) {
Expand All @@ -24,4 +23,4 @@
}

}
?>]
?>]
6 changes: 2 additions & 4 deletions demo/en/asyncData/getNodes.php
Expand Up @@ -21,11 +21,9 @@
if ($pName==null) $pName = "";
else $pName = $pName.".";

$pId = str_replace("%<%", "&lt;", $pId);
$pId = str_replace("%>%", "&gt;", $pId);
$pId = htmlspecialchars($pId);

$pName = str_replace("%<%", "&lt;", $pName);
$pName = str_replace("%>%", "&gt;", $pName);
$pName = htmlspecialchars($pName);

//for ($i=1; $i<9999; $i++) {
// for ($j=1; $j<999; $j++) {
Expand Down
5 changes: 2 additions & 3 deletions demo/en/asyncData/getNodesForBigData.php
Expand Up @@ -11,8 +11,7 @@
if ($pId==null || $pId=="") $pId = "0";
if ($pCount==null || $pCount=="") $pCount = "10";

$pId = str_replace("%<%", "&lt;", $pId);
$pId = str_replace("%>%", "&gt;", $pId);
$pId = htmlspecialchars($pId);

$max = (int)$pCount;
for ($i=1; $i<=$max; $i++) {
Expand All @@ -24,4 +23,4 @@
}

}
?>]
?>]

0 comments on commit b8fb655

Please sign in to comment.