codeigniter框架The URI you submitted has disallowed characters错误解决方法_php实例
程序员文章站
2022-03-13 22:12:50
...
CI中URI传递参数时,出现:The URI you submitted has disallowed characters.错误。
原因:这是由于uri中存在CI不允许的字符。
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_/-i';
原因:这是由于uri中存在CI不允许的字符。
解决办法:
在config/config.php文件中,找到
复制代码 代码如下:
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_/-i';
在里面添加允许的字符。如我需要添加@符号,则可以这样:
复制代码 代码如下:
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_/-i@ ';
上一篇: 快速运行一个php文件的方法
下一篇: Django模板语言的详细介绍(附代码)
推荐阅读
-
codeigniter框架The URI you submitted has disallowed characters错误解决方法
-
codeigniter框架The URI you submitted has disallowed characters错误解决方法
-
codeigniter框架The URI you submitted has disallowed characters
-
codeigniter框架The URI you submitted has disallowed characters
-
codeigniter框架The URI you submitted has disallowed characters错误解决方法
-
codeigniter框架The URI you submitted has disallowed characters错误解决方法_php实例
-
codeigniter框架The URI you submitted has disallowed characters错误解决方法_php实例