|
发表于 2010-10-12 21:45:48
|
显示全部楼层
解决CodeIgniter 中出现Disallowed Key Characters.
将Input类里的
function _clean_input_keys($str)
{
if ( ! preg_match("/^[a-z0-9:_/-]+$/i", $str))
{
exit('Disallowed Key Characters.');
}
return $str;
}
换成
function _clean_input_keys($str)
{
$config = &get_config('config');
if ( ! preg_match("/^[".$config['permitted_uri_chars']."]+$/i", rawurlencode($str)))
{
exit('Disallowed Key Characters.');
}
return $str;
}
详细请看:http://www.dgpower.net/index.php/home/showOnews/198 |
|