duanhai4046
duanhai4046
2014-07-18 07:00

Codeigniter preg_replace() - 编译失败:消息

  • codeigniter
  • php

I am Posting 5 pages of docx data from cleditor codeigniter ajax. While data passes to the controller it gives warning message:

A PHP Error was encountered

Severity: Warning

Message: preg_replace(): Compilation failed: regular expression is too large 
   at offset 65439

Filename: core/Security.php

Line Number: 641"

and no data posted on controller side like:

// displays nothing
echo $messageText=trim($this->input->post('composeMessage', TRUE));

I tried to set FALSE global_xss_filtering in config.php

$config['global_xss_filtering'] = FALSE;

but it did not work.

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

2条回答

为你推荐