mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-02 00:32:15 +09:00
r7733 보안
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7736 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
76db62dcb7
commit
829f45afef
1 changed files with 2 additions and 1 deletions
|
|
@ -571,7 +571,8 @@
|
||||||
|
|
||||||
// step1: check files in the template directory
|
// step1: check files in the template directory
|
||||||
//$source_filename = sprintf("%s/%s", dirname($this->file), $arg);
|
//$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
|
// step2: check path from root
|
||||||
if(!file_exists($source_filename)) $source_filename = './'.$arg;
|
if(!file_exists($source_filename)) $source_filename = './'.$arg;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue