TaoLer/app/Request.php

24 lines
623 B
PHP
Raw Normal View History

2020-01-01 13:17:19 +08:00
<?php
2022-08-02 21:13:36 +08:00
/*
* @Author: TaoLer <317927823@qq.com>
* @Date: 2021-12-06 16:04:50
* @LastEditTime: 2022-07-28 11:44:38
* @LastEditors: TaoLer
* @Description: 优化版
* @FilePath: \github\TaoLer\app\Request.php
* Copyright (c) 2020~2022 https://www.aieok.com All rights reserved.
*/
2020-01-01 13:17:19 +08:00
namespace app;
// 应用请求对象类
class Request extends \think\Request
{
//过滤空格
2021-10-12 16:50:02 +08:00
//protected $filter = ['trim','htmlspecialchars','strip_tags'];
//protected $filter = ['trim','htmlspecialchars'];
//protected $filter = ['trim','strip_tags'];
2022-08-02 21:13:36 +08:00
//protected $filter = ['htmlspecialchars'];
2022-11-18 10:31:44 +08:00
protected $filter = ['trim'];
2021-10-12 16:50:02 +08:00
2020-01-01 13:17:19 +08:00
}