首页 > 运营 > 软件工具 > 正文

fckeditor 防止上传非法文件 增加登录判断

2020-10-06 22:54:40
字体:
来源:转载
供稿:网友
fckeditor/editor/filemanager/connectors/asp 目录下 两个文件connector.asp upload.asp 里判断是否登录后台

connector.asp
If ( ConfigIsEnabled = False ) Then
SendError 1, "This connector is disabled. Please check the ""editor/filemanager/connectors/asp/config.asp"" file"
End If

在这段代码之前增加身份判断
if 没登录 then
SendError 1, "no login"
end if
upload.asp
if
fckeditor 目录改名 尽量改成fckeditor没有关系的名字
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表