Requesst类的Input方法和input助手函数的filter参数支持传入null 表示当前不过滤

This commit is contained in:
thinkphp
2016-11-09 12:17:42 +08:00
parent cb9fb04cad
commit 53329b79b6
2 changed files with 23 additions and 19 deletions

View File

@@ -117,7 +117,7 @@ if (!function_exists('input')) {
* @param string $filter 过滤方法
* @return mixed
*/
function input($key = '', $default = null, $filter = null)
function input($key = '', $default = null, $filter = '')
{
if (0 === strpos($key, '?')) {
$key = substr($key, 1);