git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3977 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2008-03-19 06:41:30 +00:00
parent 53909712e2
commit 2fe82be5a3

View file

@ -399,7 +399,8 @@
$url = str_replace(array('&','"','<','>'),array('&amp;','&quot;','&lt;','&gt;'),$node->url);
if(preg_match('/^([0-9a-zA-Z\_\-]+)$/', $node->url)) {
$href = getUrl('','mid',$node->url);
$href = str_replace(Context::getRequestUri(),'/',$href);
$pos = strpos($href, $_SERVER['HTTP_HOST']);
if($pos !== false) $href = substr($href, $pos+strlen($_SERVER['HTTP_HOST']));
} else $href = $url;
$open_window = $node->open_window;
$expand = $node->expand;
@ -491,7 +492,8 @@
$url = str_replace(array('&','"','<','>'),array('&amp;','&quot;','&lt;','&gt;'),$node->url);
if(preg_match('/^([0-9a-zA-Z\_\-]+)$/i', $node->url)) {
$href = getUrl('','mid',$node->url);
$href = str_replace(Context::getRequestUri(),'/',$href);
$pos = strpos($href, $_SERVER['HTTP_HOST']);
if($pos !== false) $href = substr($href, $pos+strlen($_SERVER['HTTP_HOST']));
} else $href = $url;
$open_window = $node->open_window;
$normal_btn = str_replace(array('&','"','<','>'),array('&amp;','&quot;','&lt;','&gt;'),$node->normal_btn);