Explorar o código

修复请求mer/getPhpToken?3269报错问题,真厉害的传值

sunxbiao hai 6 meses
pai
achega
d93d4be646
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/middleware/SecurityMiddleware.php

+ 1 - 1
app/middleware/SecurityMiddleware.php

@@ -94,7 +94,7 @@ class SecurityMiddleware
94
     /**
94
     /**
95
      * 检测攻击
95
      * 检测攻击
96
      */
96
      */
97
-    protected function detectAttack($value, string $key = ''): bool
97
+    protected function detectAttack($value, $key): bool
98
     {
98
     {
99
         if (!is_string($value)) {
99
         if (!is_string($value)) {
100
             return false;
100
             return false;