mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-12 07:11:42 +09:00
업로드가 아닌 첨부파일의 서버내 복사(게시글 복사/이동)시에도 파일명에 의한 오류에 대처하도록 변경
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4379 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
0fddaf252f
commit
42cb1bcfaa
2 changed files with 9 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue