步骤:
-
修改文件:/e/class/functions.php:
-
修改文件:/e/class/connect.php:
- 找到以下代码:
$r[filetype] = GetFiletype($url);
- 在其后面添加以下代码:
if ((strlen($r[filetype]) !== 4) && (strlen($r[filetype]) !== 5)) {
$r[filetype] = ".jpg";
}
- 找到以下代码:
分享服务器维护、抵抗入侵、防篡改、防御攻击、排查后门木马、清理挖矿病毒、网络安全、信息安全、内网安全、数据灾备、网站搬迁、程序升级、威胁情报、网站安全运维的日常知识
步骤:
修改文件:/e/class/functions.php:
修改文件:/e/class/connect.php:
$r[filetype] = GetFiletype($url);
if ((strlen($r[filetype]) !== 4) && (strlen($r[filetype]) !== 5)) {
$r[filetype] = ".jpg";
}