正在用CI开发自己的项目,赶紧下下来测试测试
的萨斯都是
回复 60# shadowhung
How to fix it. (assuming codeigniter 1.7)
1) in codeigiter system/libraries openURI.phpline 189 you’ll find
if ( ! preg_match("|^[".preg_quote($this->config->item('permitted_uri_chars'))."]+$|i", rawurlencode($str)))
Change that to:
if ( ! preg_match("|^[".($this->config->item('permitted_uri_chars'))."]+$|i", rawurlencode($str)))
Note we removed the preg_quote().Now in your system/application/config/config.php filelook for line 126 (unless you’ve added a lot to you config will be around there somewhere)
Change the line
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_-';
to:
$config['permitted_uri_chars'] = 'a-z 0-9~%\.\:_\-';
we’re now preparing our allowed character string in the config file and skipping preg_quote.And that’s it.Now your uri should work
我按要求改了后可以通過,希望對你有幫助!
我下载了,打开编码不对,他默认编码是什么?
顶
:):victory:
新手求助:
根据说明安装完以后,能看到首页,但是要登录时,一直提示:The URI you submitted has disallowed characters.
不知道要改哪里。
you ni zhen hao !
正在学习,霸气啊
啊,facebook
很好,先下载试试。