From d382789bffb0a749d1f982f6f032b36a19beb05d Mon Sep 17 00:00:00 2001 From: icret Date: Thu, 13 Jan 2022 20:35:59 +0800 Subject: [PATCH] 2.4.5 --- README.md | 9 ++++----- config/config.php | 27 ++++++++------------------- 2 files changed, 12 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index 9ef336e..ee3a14b 100755 --- a/README.md +++ b/README.md @@ -71,10 +71,9 @@ Deny from all - Nginx环境限制上传目录禁止运行`PHP`程序: ```Nginx - # 禁止运行php的目录 - location ~* ^/(i|public|config)/.*\.(php|php5)$ - { - deny all; + # 禁止运行php的目录 "i"是你的上传图片目录 + location ~ /(i)/.*.(php|php5)?$ { + deny all; } ``` - 或者参考:[https://www.545141.com/981.html](https://www.545141.com/981.html) @@ -86,7 +85,7 @@ Deny from all
点击查看2.0版更新日志 -* 2022-1-13 v2.4.5 beta 2 +* 2022-1-13 v2.4.5 - 修复一处权限问题 - 修复恢复可疑图片 - 增加复制提示 diff --git a/config/config.php b/config/config.php index 5adf909..7d48cda 100755 --- a/config/config.php +++ b/config/config.php @@ -1,12 +1,12 @@ -'简单图床 - EasyImage', 'keywords'=>'简单图床,easyimage,无数据库图床,PHP多图长传程序,自适应页面,HTML5,markdown,bbscode,一键复制', 'description'=>'简单图床EasyImage是一款支持多文件上传的无数据库图床,可以完美替代PHP多图上传程序,最新html5自适应页面兼容手机电脑,上传后返回图片直链,markdown图片,论坛贴图bbscode链接,简单方便支持一键复制,支持多域名,api上传。', 'tips'=>'本站仅做演示用,不定时清理图片,单文件≤5M,每次上传≤30张', - 'domain'=>'http://192.168.2.100', - 'imgurl'=>'http://192.168.2.100', + 'domain'=>'http://localhost', + 'imgurl'=>'http://localhost', 'user'=>'admin', 'password'=>'e6e061838856bf47e1de730719fb2609', 'mustLogin'=>0, @@ -37,11 +37,11 @@ $config=Array 'imgRatio_crop'=>0, 'imgRatio_preserve_headers'=>1, 'static_cdn'=>0, - 'theme'=>'red', + 'theme'=>'default', 'static_cdn_url'=>'https://cdn.jsdelivr.net/gh/icret/EasyImages2.0', 'TinyImag_key'=>'', 'moderatecontent_key'=>'', - 'footer'=>'请勿上传违反中国政策的图片 + 'footer'=>'请勿上传违反中国政策的图片
', 'ad_top'=>0, 'ad_top_info'=>'