用户
 找回密码
 入住 CI 中国社区

QQ登录

只需一步,快速开始

扫一扫,访问微社区

搜索
查看: 29|回复: 1
收起左侧

[已解决] An Error Was Encountered The URI you submitted has disallowed characters.

[复制链接]
发表于 5 天前 | 显示全部楼层 |阅读模式
要写一个 网站的搜索页面,搜索条件十多个,单纯拼访问地址uri的方式地址太长了,直接加了一个 urlencode($json)    urlencode后的一个json 参数  直接报这种错误,uri不可解析,论坛里查了是config.php 文件 中的这一行限制住了  $config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';  但怎么改啊请大神指教
http://www.aaa.com/index_ci.php/Mamaju/index/index/%7B%22type%22%3A%22index%22%2C%22word%22%3A%22%22%2C%22limit%22%3A100%2C%22sort%22%3A4%2C%22istmall%22%3A%22%22%2C%22numiid%22%3A%22%22%2C%22cate%22%3A%22%22%2C%22priceMin%22%3A%22%22%2C%22priceMax%22%3A%22%22%2C%22comMin%22%3A%22%22%2C%22comMax%22%3A%22%22%2C%22volumeMin%22%3A%22%22%2C%22volumeMax%22%3A%22%22%2C%22istbk%22%3A1%2C%22iscoup%22%3A%22%22%2C%22channel%22%3A%22%22%2C%22topbrank%22%3A%220%22%2C%22selfgoods%22%3A%220%22%2C%22flag%22%3A%22%22%7D/2
发表于 5 天前 | 显示全部楼层
把内容放到 querystring 里,例如 http://domain.com/xxx?abc=json

本版积分规则