no commit message
This commit is contained in:
@@ -96,7 +96,8 @@ class sysfileClassAction extends Action
|
||||
if($str=$this->iscaozuo())return $str;
|
||||
$path = $this->jm->base64decode($this->get('path'));
|
||||
if(isempt($path))return '无效路径';
|
||||
|
||||
$path = str_replace('\\','/', $path);
|
||||
$path = str_replace(array('../','..'),'', $path);
|
||||
if(!file_exists(ROOT_PATH.'/'.$path))return '文件不存在';
|
||||
$pathinfo=pathinfo($path);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user