Browse Source

Update select_templets_post.php

tags/6.1.0^2
xushubieli 3 years ago
parent
commit
5fd89719c1
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/admin/dialog/select_templets_post.php

+ 1
- 1
src/admin/dialog/select_templets_post.php View File

@@ -30,7 +30,7 @@ if ($filename =='') {
}
$filename = trim(preg_replace("#[ \r\n\t\*\%\\\/\?><\|\":]{1,}#", '', $filename));
if ($filename == '' || !preg_match("#\.(" . $cfg_txttype . ")#i", $filename)) {
ShowMsg("所上传的文件存在问题,请检查文件类型是否适合", "-1");
ShowMsg("所上传的文件存在问题,请检查文件类型是否适合", "-1");
}
$fullfilename = $cfg_basedir.$activepath."/".$filename;
move_uploaded_file($uploadfile, $fullfilename) or die("上传文件到 $fullfilename 失败");


Loading…
Cancel
Save