Skip to content
This repository has been archived by the owner on Jan 4, 2020. It is now read-only.

Commit

Permalink
修正一处错误
Browse files Browse the repository at this point in the history
  • Loading branch information
liu21st committed Dec 15, 2014
1 parent 1d9aa58 commit 41f9b72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ThinkPHP/Common/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ function I($name,$default='',$filter=null,$datas=null) {

foreach($filters as $filter){
if(function_exists($filter)) {
$data = is_array($data) ? array_map_recursive($filter,$data) : filter($data); // 参数过滤
$data = is_array($data) ? array_map_recursive($filter,$data) : $filter($data); // 参数过滤
}elseif(0===strpos($filter,'/')){
// 支持正则验证
if(1 !== preg_match($filter,(string)$data)){
Expand Down

0 comments on commit 41f9b72

Please sign in to comment.