Security.php 641 - Compilation failed: regular expression is too large at offset 36332
Severity: Warning --> preg_replace() [
function.preg-replace]: Compilation failed: regular expression is too large at offset 36332
fuel\codeigniter\core\Security.php 641
Seems the issue come from CI, but are there any method to solve this error?
This error occurred when i save in the admin panel.
Thanks.
Comments
... 'sanitize_input' => array('template','php'), ...
below is my setting in MY_fuel_modules.php.
$config['modules']['paper'] = array( 'sanitize_input' => array('template','php'), 'default_order' => 'desc', 'icon_class' => 'ico_research', );
It is added after your suggsstion, but still not work
'sanitize_input' => array('template','php'),
When i save the model in admin, i lost the "text" in the textarea.
And then i found the error message in the log file
Compilation failed: regular expression is too large at offset 36332 Line 641
Security.php Line 641 $str = preg_replace('/(<?)(\/?[^><]+?)([^A-Za-z<>\-])(.*?)('.implode('|', $attribs).')(.*?)([\s><]?)([><]*)/i', '$1$2 $4$6$7$8', $str, -1, $count);
The error occurred only if the field have too many text.
http://stackoverflow.com/questions/8268624/php-preg-match-all-limit