git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4906 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ngleader 2008-11-19 08:41:45 +00:00
parent ab71c6d468
commit beabe56505
6 changed files with 13 additions and 4 deletions

View file

@ -1224,5 +1224,11 @@
return false;
}
function getFixUrl($url){
if(eregi("(http|https):\/\/",$url)) return $url;
if(ereg("^/",$url)) return $url;
return dirname($_SERVER['PHP_SELF']) . "/" . $url;
}
}
?>