兔八哥极品软件园    运行: 4501天 | 文章:640 篇 | 评论:506 条 | 碎语:1条

因为安全原因,文件不可浏览. 请联系系统管理员并检查CKFinder配置文件

作者:admin 发布于:2012-3-26 21:00 Monday 分类:.NET


asp版

修改config.asp文件

CheckAuthentication = false

改成CheckAuthentication = true

asp.ne版

修改config.ascx文件

public override bool CheckAuthentication()
 {
          //return false;
        return true;
 }

修改 return false; 为 return true;

 

但是直接修改是危险的,官方给出的解释:

// WARNING : DO NOT simply return "true". By doing so, you are allowing
// "anyone" to upload and list the files in your server. You must implement
// some kind of session validation here. Even something very simple as...
//
// return ( Session[ "IsAuthorized" ] != null && (bool)Session[ "IsAuthorized" ] == true );
//
// ... where Session[ "IsAuthorized" ] is set to "true" as soon as the
// user logs on your system.

 

大体翻译一下:

警告:请不要直至返回True值,这样做将会导致任何人都可以上传和列出服务器上的文件,

建议你用Session控制一下

 

 

标签: CKFinder


Powered by 兔八哥极品软件 苏ICP备12049267号 sitemap