sym link일 경우 getScriptPath()가 오동작하던 문제 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4332 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2008-06-27 08:31:40 +00:00
parent bdc194ab1d
commit a0991ceeb1

View file

@ -474,7 +474,7 @@
function getScriptPath() {
static $url = null;
if($url === null) {
$document_root = str_replace('\\','/',$_SERVER['DOCUMENT_ROOT']);
$document_root = str_replace('\\','/',realpath($_SERVER['DOCUMENT_ROOT']));
$file = str_replace('\\','/',__FILE__);
$url = preg_replace('/index.php/i','',str_replace('config/func.inc.php','',str_replace($document_root, '', $file)));
}