时间:2021-07-01 10:21:17 帮助过:8人阅读
解决 CodeIgniter 框架应用中,出现Disallowed Key Characters错误提示的方法。找到/system/core文件夹下的Input文件,将下面的代码:
_clean_input_keys( ( ! ("/^[a-z0-9:_\/-]+$/i", ('Disallowed Key Characters.'
(UTF8_ENABLED === = ->uni->clean_string(
改为:
_clean_input_keys( = &get_config('config' ( ! ("/^[".['permitted_uri_chars']."]+$/i", (('Disallowed Key Characters.'
(UTF8_ENABLED === = ->uni->clean_string(
参考:http://www.nowamagic.net/librarys/veda/detail/1699
http://www.bkjia.com/PHPjc/440425.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/440425.htmlTechArticle用CI框架时,有时候会遇到这么一个问题,打开网页,只显示 Disallowed Key Characters 错误提示。有人说 url 里有非法字符。但是确定 url 是纯英...