改进Request类 改进input助手函数 取消Input类

This commit is contained in:
thinkphp
2016-06-18 09:29:25 +08:00
parent 323b1884dc
commit 4686698819
7 changed files with 38 additions and 704 deletions

View File

@@ -222,7 +222,7 @@ class App
}
}
// 全局过滤
array_walk_recursive($args, 'think\\Input::filterExp');
array_walk_recursive($args, [Request::instance(),'filterExp']);
}
return $args;
}
@@ -458,8 +458,7 @@ class App
// 路由无效 解析模块/控制器/操作/参数... 支持控制器自动搜索
$result = Route::parseUrl($path, $depr, $config['controller_auto_search'], $config['url_param_type']);
}
//保证$_REQUEST正常取值
$_REQUEST = array_merge($_POST, $_GET, $_COOKIE);
// 注册调度机制
return $request->dispatch($result);
}