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

This commit is contained in:
zero 2008-02-19 16:28:53 +00:00
parent 434395cf4b
commit c6c3085b15

View file

@ -467,7 +467,7 @@
* 현재 요청받은 스크립트 경로를 return
**/
function getScriptPath() {
if(function_exists('php_sapi_name') && php_sapi_name()=='cgi') return preg_replace('/index.php/i','',$_SERVER['PATH_INFO']);
//if(function_exists('php_sapi_name') && php_sapi_name()=='cgi') return preg_replace('/index.php/i','',$_SERVER['PATH_INFO']);
return preg_replace('/index.php/i','',$_SERVER['SCRIPT_NAME']);
}