codeigniter preg_match抛出不允许的字符

时间:2016-05-19 11:21:09

标签: php codeigniter preg-match

以前工作的Codeigniter中的简单行,现在抛出Dissallowed Key Character错误..在core / Input.php中

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

由于在 blah-12-345 中出现划线而失败...以前工作正常,但为什么现在失败? 感谢

0 个答案:

没有答案