mirror of https://gitee.com/karson/fastadmin.git
新增默认过滤函数处理
parent
2c7546e43f
commit
d9bf3b3715
|
|
@ -93,7 +93,7 @@ class Api
|
||||||
protected function _initialize()
|
protected function _initialize()
|
||||||
{
|
{
|
||||||
//移除HTML标签
|
//移除HTML标签
|
||||||
$this->request->filter('strip_tags');
|
$this->request->filter('trim,strip_tags,htmlspecialchars');
|
||||||
|
|
||||||
$this->auth = Auth::instance();
|
$this->auth = Auth::instance();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ class Frontend extends Controller
|
||||||
public function _initialize()
|
public function _initialize()
|
||||||
{
|
{
|
||||||
//移除HTML标签
|
//移除HTML标签
|
||||||
$this->request->filter('strip_tags');
|
$this->request->filter('trim,strip_tags,htmlspecialchars');
|
||||||
$modulename = $this->request->module();
|
$modulename = $this->request->module();
|
||||||
$controllername = Loader::parseName($this->request->controller());
|
$controllername = Loader::parseName($this->request->controller());
|
||||||
$actionname = strtolower($this->request->action());
|
$actionname = strtolower($this->request->action());
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue