它显示“ Disallowed Key Characters”适用于所有Codeigniter项目的Chrome [英] it shows "Disallowed Key Characters" in chrome for all Codeigniter project

查看:71
本文介绍了它显示“ Disallowed Key Characters”适用于所有Codeigniter项目的Chrome的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的本地PC中,我在codeigniter中创建了许多项目。但突然出现杂音,显示 Disallowed Key Characters。这显示了所有CI项目。但是在Firefox中它可以正常工作。我不知道为什么只有CI在Chrome中无法使用。这并非特定于任何CI项目。

in my local pc, i have many projects created in codeigniter. but suddently in chome it shows "Disallowed Key Characters". This shows for all CI project. However in firefox it works ok. I dont know that why only CI not works in chrome. This is not specific to any CI PROJECT. it shows same error for all project in chrome.

可能是什么原因?

推荐答案

此问题可能是由某些输入引起的。
您可以 $ hack codeigniter input.php库,并在 preg_match 中接受更多字符。

this issue may be caused by some input. You can hack codeigniter input.php library and accept more characters in the preg_match.

只需更改 /system/core/input.php 的第729行:

Just change the line 729~ of /system/core/input.php for this:

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

    return $str;
}

您应选中此问题以获取更多信息

You should check this question for more information

这篇关于它显示“ Disallowed Key Characters”适用于所有Codeigniter项目的Chrome的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆