Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/url/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Codeigniter 服务器上不允许的关键字符_Codeigniter_Url - Fatal编程技术网

Codeigniter 服务器上不允许的关键字符

Codeigniter 服务器上不允许的关键字符,codeigniter,url,Codeigniter,Url,下面是我的错误 这是我的配置: $config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-,()/@=+?&'; 这是我在系统文件夹中的输入文件 下面是代码 function _clean_input_keys($str) { if ( ! preg_match("/^[a-z0-9:_\/-]+$/i", $str)) { exit('Disallowed Key Characters.'); }

下面是我的错误

这是我的配置:

$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-,()/@=+?&';
这是我在系统文件夹中的输入文件

下面是代码

function _clean_input_keys($str)
{
    if ( ! preg_match("/^[a-z0-9:_\/-]+$/i", $str))
    {
        exit('Disallowed Key Characters.');
    }

    // Clean UTF-8 if supported
    if (UTF8_ENABLED === TRUE)
    {
        $str = $this->uni->clean_string($str);
    }

    return $str;
}

我尝试了所有选项,但仍仅在服务器上获取不允许的字符。

当您添加新字符时,是否重新启动了服务器。我现在重新启动了服务器,但这是相同的问题。请在此帮助我清理您在preg_match函数中未添加=字符的输入键。根据您的url。这有帮助吗?谢谢,我在输入文件中尝试了=,它不支持我。尝试添加=?如果要传递自定义函数,则使用和(&C)字符