Browse Source

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

sunxbiao 8 months ago
parent
commit
d93d4be646
1 changed files with 1 additions and 1 deletions
  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;