Asp.net FCKEditor 2.6.3 上传文件没有权限解决方法
程序员文章站
2023-11-18 22:28:16
打开解决方案, 找到 filebrowser/fileworkerbase.cs 文件 复制代码 代码如下:response.write( @"(function(){va...
打开解决方案,
找到 filebrowser/fileworkerbase.cs 文件
response.write( @"(function(){var d=document.domain;while (true){try{var a=window.top.opener.document.domain;break;}catch(e) {};d=d.replace(/.*?(?:\.|$)/,'');if (d.length==0) break;try{document.domain=d;}catch (e){break;}}})();" );
response.write( @"(function(){var d=document.domain;while (true){try{var a=window.top.opener.document.domain;break;}catch(e) {};d=d.replace(/.*?(?:\.|$)/,'');if (d.length==0) break;try{document.domain=d;}catch (e){break;}}})();" );
修改成:
response.write(@"(function(){var d=document.domain;while (true){try{var a=window.top.opener.document.domain;break;}catch(e) {};d=d.replace(/.*?(?:\.|$)/,'');if (d.length==0) break;}})();");
response.write(@"(function(){var d=document.domain;while (true){try{var a=window.top.opener.document.domain;break;}catch(e) {};d=d.replace(/.*?(?:\.|$)/,'');if (d.length==0) break;}})();");
编译,将dll文件拷贝覆盖你网站bin目录的文件
找到 filebrowser/fileworkerbase.cs 文件
复制代码 代码如下:
response.write( @"(function(){var d=document.domain;while (true){try{var a=window.top.opener.document.domain;break;}catch(e) {};d=d.replace(/.*?(?:\.|$)/,'');if (d.length==0) break;try{document.domain=d;}catch (e){break;}}})();" );
response.write( @"(function(){var d=document.domain;while (true){try{var a=window.top.opener.document.domain;break;}catch(e) {};d=d.replace(/.*?(?:\.|$)/,'');if (d.length==0) break;try{document.domain=d;}catch (e){break;}}})();" );
修改成:
复制代码 代码如下:
response.write(@"(function(){var d=document.domain;while (true){try{var a=window.top.opener.document.domain;break;}catch(e) {};d=d.replace(/.*?(?:\.|$)/,'');if (d.length==0) break;}})();");
response.write(@"(function(){var d=document.domain;while (true){try{var a=window.top.opener.document.domain;break;}catch(e) {};d=d.replace(/.*?(?:\.|$)/,'');if (d.length==0) break;}})();");
编译,将dll文件拷贝覆盖你网站bin目录的文件