#64 서버 내 경로를 절대경로로 변경

This commit is contained in:
bnu 2013-11-22 14:57:24 +09:00
parent bf0dd35f0a
commit 932862be1f
42 changed files with 807 additions and 133 deletions

View file

@ -17,10 +17,11 @@ class FileHandler
*/
function getRealPath($source)
{
if(substr_compare($source, './', 0, 2) === 0)
if(strlen($source) > 2 && substr_compare($source, './', 0, 2) === 0)
{
return _XE_PATH_ . substr($source, 2);
}
return $source;
}