我尝试在tinymce中使用jbimages插件,它加载正常,但当脚本试图上传图片时,我得到了以下错误:
不允许的关键字符。
这是什么,我如何修复它?
发布于 2016-04-17 11:00:08
我通过以下方式修复了这个问题:
function _clean_input_keys($str)
{
if ( ! preg_match("/^[a-z0-9:_\/-]+$/i", $str))
{
//REMARK THIS
//exit('Disallowed Key Characters.');
}
// Clean UTF-8 if supported
if (UTF8_ENABLED === TRUE)
{
$str = $this->uni->clean_string($str);
}
return $str;
}在……里面
jbimages/ci/system/core/input.phphttps://stackoverflow.com/questions/17619927
复制相似问题