November 2, 2018
报错:CodeIgniter Disallowed Key Characters, disallowed key characters
改用一下的正则表达式
!preg_match("/^[a-z0-9\x{4e00}-\x{9fa5}\:\;\.\,\?\!\@\#\$%\^\*\"\~\'+=\\\ &_\/\.\[\]-\}\{]+$/iu", $str)
修改 Input.php 或者创建自己的 MY_Input.php , 如下:
<?php
class MY_Input extends CI_Input {
/**
* Clean Keys
*
* This is a helper function. To prevent malicious users
* from trying to exploit keys we make sure that keys are