jevonszmx 发表于 2010-11-24 13:50:03

正在用CI开发自己的项目,赶紧下下来测试测试

chen_jinzhu 发表于 2010-11-26 14:52:34

的萨斯都是

phperbar 发表于 2010-12-6 10:45:42

回复 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

我按要求改了后可以通過,希望對你有幫助!

aican0830 发表于 2010-12-6 15:21:08

我下载了,打开编码不对,他默认编码是什么?

whlgjjgyy 发表于 2011-3-10 20:36:35


:):victory:

Heavytaro 发表于 2011-6-12 20:15:09

新手求助:
根据说明安装完以后,能看到首页,但是要登录时,一直提示:The URI you submitted has disallowed characters.
不知道要改哪里。

小米依依 发表于 2011-6-27 11:59:35

you ni zhen hao !

golala2010 发表于 2011-7-15 00:21:16

正在学习,霸气啊

Wing 发表于 2011-7-17 19:49:18

啊,facebook

龙的宠儿 发表于 2011-8-20 00:39:35

很好,先下载试试。
页: 1 2 3 4 5 6 [7] 8 9 10 11 12
查看完整版本: [1.5.4]一个完整的 CI 例子: facebook 克隆