首页  ·  知识 ·  云计算
thisconnectorisdisabled错误的解决办法
xgpapa  http://www.cnblogs.com/xgpapa/archive/2008/01/19/1    编辑:dezai  图片来源:网络
解决办法: 打开editor/filemanager/connectors/aspx/config.ascx修改CheckAuthentication()方法,返回true C# code private bool Chec

解决办法:

打开editor/filemanager/connectors/aspx/config.ascx修改CheckAuthentication()方法,返回true

C# code

private bool CheckAuthentication()
{
// 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 in your system.

        return true;
}

随便看了一下config.ascx里的内容,发现如果想让对每个用户进行不同的配置,FCKeditor支持的更好了。

本文作者:xgpapa 来源:http://www.cnblogs.com/xgpapa/archive/2008/01/19/1
CIO之家 www.ciozj.com 微信公众号:imciow
    >>频道首页  >>网站首页   纠错  >>投诉
版权声明:CIO之家尊重行业规范,每篇文章都注明有明确的作者和来源;CIO之家的原创文章,请转载时务必注明文章作者和来源;
延伸阅读