Home > php教程 > php手册 > body text

codeigniter框架The URI you submitted has disallowed characters

WBOY
Release: 2016-06-06 20:22:57
Original
1632 people have browsed it

这篇文章主要介绍了codeigniter框架The URI you submitted has disallowed characters错误解决方法,需要的朋友可以参考下

CI中URI传递参数时,出现:The URI you submitted has disallowed characters.错误。
原因:这是由于uri中存在CI不允许的字符。

解决办法:

在config/config.php文件中,,找到

复制代码 代码如下:


$config['permitted_uri_chars'] = 'a-z 0-9~%.:_/-i';

在里面添加允许的字符。如我需要添加@符号,则可以这样:

复制代码 代码如下:

$config['permitted_uri_chars'] = 'a-z 0-9~%.:_/-i@ ';

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template