我搜索了所有帖子,发现他们遇到了同样的错误。大多数评论和反馈已成功修复,但当我修复时,它确实不起作用:/请帮助我:(
我已经更改了 system/application/config/config.php
文件:
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';
到
$config['permitted_uri_chars'] = 'a-z 0-9~%\.\:_\-';
和
在此文件夹中 system/libraries/URI.php
文件来自:
if ( ! preg_match("|^[".str_replace(array('\\-', '\-'), '-', preg_quote($this->config->item('permitted_uri_chars'), '-'))."]+$|i", $str))
到
if ( ! preg_match("|^[".($this->config->item('permitted_uri_chars'))."]+$|i", rawurlencode($str)))
仍然是“您提交的 URI 包含不允许使用的字符。”存在。
最佳答案
这是我的支持 facebook 的应用程序
$config['permitted_uri_chars'] = '+=a-z 0-9?~%.,:_\-';
我见过成功的人也启用了下面的功能,但我的仍然设置为 FALSE
$config['enable_query_strings'] = TRUE;
关于facebook - 在 CodeIgniter Login with Facebook 中仍然出现 "The URI you submitted has disallowed characters."错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13812534/