issue 2177 add code about use "addslash"

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@10845 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
devjin 2012-07-06 09:56:39 +00:00
parent 6a5e82d225
commit 2165f59b04

View file

@ -879,6 +879,12 @@
$normal_btn = str_replace(array('&','"','<','>'),array('&amp;','&quot;','&lt;','&gt;'),$node->normal_btn);
$hover_btn = str_replace(array('&','"','<','>'),array('&amp;','&quot;','&lt;','&gt;'),$node->hover_btn);
$active_btn = str_replace(array('&','"','<','>'),array('&amp;','&quot;','&lt;','&gt;'),$node->active_btn);
foreach($child_output['url_list'] as $key =>$val)
{
$child_output['url_list'][$key] = addslashes($val);
}
$selected = '"'.implode('","',$child_output['url_list']).'"';
$child_buff = $child_output['buff'];
$expand = $node->expand;