From 2318b10698ab5357e547119aa59ecdfa989c72ec Mon Sep 17 00:00:00 2001 From: Devil Date: Sat, 7 Aug 2021 01:23:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=85=A8=E5=B1=80=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E8=BF=87=E6=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Request.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Request.php b/app/Request.php index 8a9dd237e..1544ddfe8 100644 --- a/app/Request.php +++ b/app/Request.php @@ -13,5 +13,6 @@ namespace app; // 应用请求对象类 class Request extends \think\Request { - + // 全局参数过滤 + protected $filter = ['htmlspecialchars']; }