r7733 보안

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7736 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ngleader 2010-09-29 05:46:16 +00:00
parent 76db62dcb7
commit 829f45afef

View file

@ -571,7 +571,8 @@
// step1: check files in the template directory
//$source_filename = sprintf("%s/%s", dirname($this->file), $arg);
$source_filename = sprintf("%s/%s", $this->path, $arg);
$path = substr($this->path,-1)=='/'?substr($this->path,0,-1):$this->path;
$source_filename = sprintf("%s/%s", $path, $arg);
// step2: check path from root
if(!file_exists($source_filename)) $source_filename = './'.$arg;