FCKeditor(2.6)出现"this connector is disabled Please check the"editor/filemanager/connectors/aspx/conf

来源:互联网 发布:java冒泡排序原理 编辑:程序博客网 时间:2024/05/01 06:58

解决办法:

打开editor/filemanager/connectors/aspx/config.ascx

修改CheckAuthentication()方法,返回true

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;
 }

刚刚开始研究FCKeditor,这个应该是对上传图片进行用户验证,但是2.6版并没有实现这个方法,但是做了相关的提示。

如果不需要实现,就直接return true;



原创粉丝点击