mid체크 정규표현식에 숫자도 포함하도록 수정

git-svn-id: http://xe-core.googlecode.com/svn/trunk@2277 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2007-08-09 12:57:00 +00:00
parent 870b6e0ec4
commit 4ace824cb0

View file

@ -311,7 +311,7 @@
// 변수 정리
$name = str_replace(array('&','"','<','>'),array('&amp;','&quot;','&lt;','&gt;'),$node->name);
$url = str_replace(array('&','"','<','>'),array('&amp;','&quot;','&lt;','&gt;'),$node->url);
if(eregi('^([a-zA-Z\_\-]+)$', $node->url)) $href = getUrl('','mid',$node->url);
if(eregi('^([0-9a-zA-Z\_\-]+)$', $node->url)) $href = getUrl('','mid',$node->url);
else $href = $url;
$open_window = $node->open_window;
$expand = $node->expand;
@ -372,7 +372,7 @@
$name = str_replace(array('&','"','<','>'),array('&amp;','&quot;','&lt;','&gt;'),$node->name);
$href = str_replace(array('&','"','<','>'),array('&amp;','&quot;','&lt;','&gt;'),$node->href);
$url = str_replace(array('&','"','<','>'),array('&amp;','&quot;','&lt;','&gt;'),$node->url);
if(eregi('^([a-zA-Z\_\-]+)$', $node->url)) $href = getUrl('','mid',$node->url);
if(eregi('^([0-9a-zA-Z\_\-]+)$', $node->url)) $href = getUrl('','mid',$node->url);
else $href = $url;
$open_window = $node->open_window;
$normal_btn = str_replace(array('&','"','<','>'),array('&amp;','&quot;','&lt;','&gt;'),$node->normal_btn);