fckeditor 防止上传非法文件 增加登录判断(上传文件不合法)居然可以这样

随心笔谈12个月前发布 admin
93 0


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没有关系的名字

© 版权声明

相关文章