CKFinder 3 - 出于安全原因禁用文件浏览器
CKFinder 3 - The file browser is disabled for security reasons
我是 CKFInder 的新手,我收到了错误
The file browser is disabled for security reasons. Please contact your system administrator and check the CKFinder configuration file.
我在网站上看到了如下内容:
http://ckeditor.com/forums/Support/file-browser-disabled-for-security-reasons.
http://ckeditor.com/forums/Support/File-browser-disabled
http://ckeditor.com/forums/Support/file-browser-disabled-for-security-reasons.
他们都在 config.php 文件中提到了一个名为 checkAuthentication()
的函数,但我搜索了所有文件,无法找到该函数。
论坛上所有其他出现相同错误的人都使用 CKFinder 2,而我找不到其他使用 v3 出现错误的人
我相信这只是我忽略的一些小事。
提前致谢
翻阅config.php文件后,我看到了一个配置项$config['authentication']
将其设置为 return true
后,我不再收到错误消息。
但不确定这是否是 safest/best 解决问题的方法
为 authentication
返回 true
显然不安全。请查看 here 几个示例,了解如何使用此选项。
转到ckfinder/config。php
找到下面一行
$config['authentication'] = function () {
return false;
};
在这里把假变成真。
$config['authentication'] = function () {
return true;
};
由于它是关于 PHP 的,因此没有人对 ASP.Net 的 CKFinder 发表任何评论,尽管它与 PHP 的 CKFinder 几乎相同,无论如何,如果您使用 ASP.Net 的 CKFinder ],你刚刚下载了,你应该查找IsAuthenticated()
方法,在here中提供的示例包中,转到App_Code
文件夹,然后打开RoleBasedAuthenticator.cs
文件,制作它return true 而不是 false 暂时:
private bool IsAuthenticated(string[] roles)
{
// Should always fail if matcher is empty.
if (_allowedRoleMatcherTemplate == string.Empty)
{
return true;
}
...
转到 ckfinder
文件夹,找到 config.php 文件,转到下面的行,
$config['authentication'] = function () {
return true;
};
并确保它是 return true
而不是 false
。
希望对您有所帮助。
我是 CKFInder 的新手,我收到了错误
The file browser is disabled for security reasons. Please contact your system administrator and check the CKFinder configuration file.
我在网站上看到了如下内容:
http://ckeditor.com/forums/Support/file-browser-disabled-for-security-reasons.
http://ckeditor.com/forums/Support/File-browser-disabled
http://ckeditor.com/forums/Support/file-browser-disabled-for-security-reasons.
他们都在 config.php 文件中提到了一个名为 checkAuthentication()
的函数,但我搜索了所有文件,无法找到该函数。
论坛上所有其他出现相同错误的人都使用 CKFinder 2,而我找不到其他使用 v3 出现错误的人
我相信这只是我忽略的一些小事。
提前致谢
翻阅config.php文件后,我看到了一个配置项$config['authentication']
将其设置为 return true
后,我不再收到错误消息。
但不确定这是否是 safest/best 解决问题的方法
为 authentication
返回 true
显然不安全。请查看 here 几个示例,了解如何使用此选项。
转到ckfinder/config。php
找到下面一行
$config['authentication'] = function () {
return false;
};
在这里把假变成真。
$config['authentication'] = function () {
return true;
};
由于它是关于 PHP 的,因此没有人对 ASP.Net 的 CKFinder 发表任何评论,尽管它与 PHP 的 CKFinder 几乎相同,无论如何,如果您使用 ASP.Net 的 CKFinder ],你刚刚下载了,你应该查找IsAuthenticated()
方法,在here中提供的示例包中,转到App_Code
文件夹,然后打开RoleBasedAuthenticator.cs
文件,制作它return true 而不是 false 暂时:
private bool IsAuthenticated(string[] roles)
{
// Should always fail if matcher is empty.
if (_allowedRoleMatcherTemplate == string.Empty)
{
return true;
}
...
转到 ckfinder
文件夹,找到 config.php 文件,转到下面的行,
$config['authentication'] = function () {
return true;
};
并确保它是 return true
而不是 false
。
希望对您有所帮助。