解决typecho后台无法设置上传文件类型exe,php等

折腾记录
297 0

修改文件:
var/Widget/Options/General.php
大概65行开始,找到下面的代码

   * 过滤掉可执行的后缀名
     *
     * @param string $ext
     * @return boolean
     */
    public function removeShell(string $ext): bool
    {
        return !preg_match("/^(php|php4|php5|sh|asp|jsp|rb|py|pl|exe|dll)$/i", $ext);
    }

将上面正则表达式中过滤掉的后缀删掉你想上传的后缀名保存即可.

https://www.76fx.com/148.html
最后更新 2023-02-05
评论 ( 0 )
问:壹 + 壹 = ?
OωO
隐私评论