duanshan1511 2018-04-02 13:42
浏览 18

'vigo-b'如何是提交表格中的不允许的关键字符

Please see 2 pictures.

enter image description here

First one is a table with multi form fields. When I press submit.

enter image description here

Coidegniter show error like second picture.

What is the problem with vigo-b? hyphen? I think hyphen is an allowed key character here.

here is the input function in system/core folder

function _clean_input_keys($str)
{

// UPDATE: Now includes comprehensive Regex that can process escaped JSON

if (!preg_match("/^[a-z0-9\:\;\.\,\?\!\@\#\$%\^\*\"\~\'+=\\\ &_\/\.\[\]-\}\{]+$/iu ", $str))
    {
    /**
     * Check for Development enviroment - Non-descriptive
     * error so show me the string that caused the problem
     */
    if (getenv('ENVIRONMENT') && getenv('ENVIRONMENT') == 'DEVELOPMENT')
        {
        var_dump($str);
        }

    exit('Disallowed Key Characters.' . $str);
    }

// Clean UTF-8 if supported

if (UTF8_ENABLED === TRUE)
    {
    $str = $this->uni->clean_string($str);
    }

return $str;
}
  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 随身WiFi网络灯亮但是没有网络,如何解决?
    • ¥15 gdf格式的脑电数据如何处理matlab
    • ¥20 重新写的代码替换了之后运行hbuliderx就这样了
    • ¥100 监控抖音用户作品更新可以微信公众号提醒
    • ¥15 UE5 如何可以不渲染HDRIBackdrop背景
    • ¥70 2048小游戏毕设项目
    • ¥20 mysql架构,按照姓名分表
    • ¥15 MATLAB实现区间[a,b]上的Gauss-Legendre积分
    • ¥15 delphi webbrowser组件网页下拉菜单自动选择问题
    • ¥15 linux驱动,linux应用,多线程