美文网首页nginx专题
nginx-ci框架报错Disallowed Key Chara

nginx-ci框架报错Disallowed Key Chara

作者: 宇晨棒棒的 | 来源:发表于2019-10-08 11:58 被阅读0次

nginx配置php环境的时候报错:Disallowed Key Characters,只要是因为环境中的ci框架中的代码出现了问题。

该文件位置存放在:system/core/Input.php

*/

727        function _clean_input_keys($str)

728        {

729                //if ( ! preg_match("/^[a-z0-9:_\/-<>= ]+$/i", $str))        #原代码中的

730                if ( ! preg_match("/^[a-z0-9:_\/-]+$/i", $str))                 #修改后的代码

731                {

732                        exit('Disallowed Key Characters.');

733                }

734

735                // Clean UTF-8 if supported

736                if (UTF8_ENABLED === TRUE)

737                {

738                        $str = $this->uni->clean_string($str);

739                }

740

741                return $str;

742        }

相关文章

网友评论

    本文标题:nginx-ci框架报错Disallowed Key Chara

    本文链接:https://www.haomeiwen.com/subject/ljrwuctx.html