업로드가 아닌 첨부파일의 서버내 복사(게시글 복사/이동)시에도 파일명에 의한 오류에 대처하도록 변경

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4379 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2008-07-17 03:36:36 +00:00
parent 0fddaf252f
commit 42cb1bcfaa
2 changed files with 9 additions and 3 deletions

View file

@ -515,7 +515,7 @@
**/
function getScriptPath() {
static $url = null;
if($url == null) $url = preg_replace('/\/tools\/([a-z\_]+)/i','',preg_replace('/index.php$/i','',str_replace('\\','/',$_SERVER['SCRIPT_NAME'])));
if($url == null) $url = preg_replace('/\/tools\//i','/',preg_replace('/index.php$/i','',str_replace('\\','/',$_SERVER['SCRIPT_NAME'])));
return $url;
}