설명에 ' 입력시 오류 생기는 문제 해결

이미 문제가 생긴 경우 캐시파일 재생성으로 고칠수 있습니다.
This commit is contained in:
YJSoft 2015-06-15 18:36:44 +09:00
parent 37cea6b1ce
commit 0a79f3073f

View file

@ -1888,7 +1888,7 @@ class menuAdminController extends menu
$name_str = sprintf('$_names = array(%s); print $_names[$lang_type];', $name_arr_str);
$url = str_replace(array('&','"','<','>'),array('&amp;','&quot;','&lt;','&gt;'),$node->url);
$desc = str_replace(array('&','"','<'),array('&amp;','&quot;','&lt;'),$node->desc);
$desc = str_replace(array('&','"','<',"'"),array('&amp;','&quot;','&lt;','\\\''),$node->desc);
if(preg_match('/^([0-9a-zA-Z\_\-]+)$/', $node->url))
{
$href = "getSiteUrl('$domain', '','mid','$node->url')";
@ -1991,7 +1991,7 @@ class menuAdminController extends menu
// List variables
$href = str_replace(array('&','"','<','>'),array('&amp;','&quot;','&lt;','&gt;'),$node->href);
$url = str_replace(array('&','"','<','>'),array('&amp;','&quot;','&lt;','&gt;'),$node->url);
$desc = str_replace(array('&','"','<'),array('&amp;','&quot;','&lt;'),$node->desc);
$desc = str_replace(array('&','"','<',"'"),array('&amp;','&quot;','&lt;','\\\''),$node->desc);
if(preg_match('/^([0-9a-zA-Z\_\-]+)$/i', $node->url))
{
$href = "getSiteUrl('$domain', '','mid','$node->url')";