v2.1.16-20240525

This commit is contained in:
MI15\Win
2024-05-26 15:04:28 +08:00
parent 7c1b69b089
commit d104bf66ce
14 changed files with 55 additions and 9 deletions

View File

@@ -406,7 +406,11 @@ function write_link(){
$tmp_path = $_SESSION['upload_images'][UID][$_POST['file']];
if(!empty($tmp_path) && is_file($tmp_path)){
$suffix = strtolower(end(explode('.',$tmp_path)));
$path = "./data/user/{$u}/favicon/{$lid}.{$suffix}";
$path = "./data/user/{$u}/favicon";
if(!Check_Path($path)){
msg(-1,'创建目录失败,请检查权限');
}
$path .= "/{$lid}.{$suffix}";
if(rename($tmp_path,$path)) { //移动文件到用户目录
$icon = $path;
}else{

View File

@@ -1 +1 @@
v2.1.15-20240513
v2.1.16-20240525