网站建设相关小论文,投诉百度最有效的电话,做个模板网站多少钱,简述it外包的作用在搭建好CI框架后访问http://localhost/ci的时候总是出现Disallowed Key Characters. 解决办法#xff1a; 在项目中搜索到包含“Disallowed Key Characters”的位置#xff0c;一般在ci/system/core/Input.php中#xff0c;大概在731行左右有如下代码#xff1a; if ( ! p… 在搭建好CI框架后访问http://localhost/ci的时候总是出现Disallowed Key Characters. 解决办法 在项目中搜索到包含“Disallowed Key Characters”的位置一般在ci/system/core/Input.php中大概在731行左右有如下代码 if ( ! preg_match(/^[a-z0-9:_\/-]$/i, $str))
{exit(Disallowed Key Characters.);
} 把上面3行代码修改成下面的代码即可解决问题 $config get_config(config);
if ( ! preg_match(/^[.$config[permitted_uri_chars].]$/i, rawurlencode($str)))
{exit(Disallowed Key Characters.);
} 转载于:https://blog.51cto.com/lfliangli/1381704