用户
 找回密码
 入住 CI 中国社区
搜索
楼主: jianzi
收起左侧

[程序 App] [1.5.4]一个完整的 CI 例子: facebook 克隆

    [复制链接]
发表于 2010-11-24 13:50:03 | 显示全部楼层
正在用CI开发自己的项目,赶紧下下来测试测试
发表于 2010-11-26 14:52:34 | 显示全部楼层
的萨斯都是
发表于 2010-12-6 10:45:42 | 显示全部楼层
回复 60# shadowhung


    How to fix it. (assuming codeigniter 1.7)

1) in codeigiter system/libraries open  URI.php  line 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 file  look 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

我按要求改了后可以通過,希望對你有幫助!
发表于 2010-12-6 15:21:08 | 显示全部楼层
我下载了,打开编码不对,他默认编码是什么?
发表于 2011-3-10 20:36:35 | 显示全部楼层

:)
发表于 2011-6-12 20:15:09 | 显示全部楼层
新手求助:
根据说明安装完以后,能看到首页,但是要登录时,一直提示:The URI you submitted has disallowed characters.
不知道要改哪里。
发表于 2011-6-27 11:59:35 | 显示全部楼层
you ni zhen hao !
发表于 2011-7-15 00:21:16 | 显示全部楼层
正在学习,霸气啊
发表于 2011-7-17 19:49:18 | 显示全部楼层
啊,facebook
发表于 2011-8-20 00:39:35 | 显示全部楼层
很好,先下载试试。

本版积分规则