From 430ee98ab1feae095b51d909301fd9d9a72e8ede Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BF=98=E4=BF=97=E4=BA=8C=E5=B8=88=E5=85=84?= <505097558@qq.com> Date: Thu, 28 May 2026 01:03:10 +0000 Subject: [PATCH] =?UTF-8?q?update=20application/common/library/SelectPage.?= =?UTF-8?q?php.=20=E6=96=B0selectpage=E7=B1=BB=E4=B8=AD=E9=AA=8C=E8=AF=81?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E5=90=8D=E6=98=AF=E5=90=A6=E5=9C=A8=E5=85=81?= =?UTF-8?q?=E8=AE=B8=E5=88=97=E8=A1=A8=E4=B8=AD=E7=9A=84=E6=96=B9=E6=B3=95?= =?UTF-8?q?=E5=8F=AA=E9=AA=8C=E8=AF=81=E4=BA=86=E6=95=B0=E6=8D=AE=E5=BA=93?= =?UTF-8?q?=E8=A1=A8=E5=AD=97=E6=AE=B5=EF=BC=8C=E5=B9=B6=E6=9C=AA=E9=AA=8C?= =?UTF-8?q?=E8=AF=81=E6=A8=A1=E5=9E=8B=E4=B8=AD=E8=BF=BD=E5=8A=A0=E7=9A=84?= =?UTF-8?q?=E5=B1=9E=E6=80=A7=EF=BC=8C=E8=8B=A5=E8=A6=81=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E6=A8=A1=E5=9E=8B=E8=BF=BD=E5=8A=A0=E7=9A=84=E5=B1=9E=E6=80=A7?= =?UTF-8?q?=E4=BC=9A=E6=8A=A5=E5=8F=82=E6=95=B0=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 还俗二师兄 <505097558@qq.com> --- application/common/library/SelectPage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/common/library/SelectPage.php b/application/common/library/SelectPage.php index fbc47066e..c85556214 100644 --- a/application/common/library/SelectPage.php +++ b/application/common/library/SelectPage.php @@ -221,7 +221,7 @@ class SelectPage protected function validateField(string $field) { $field = strtolower($field); - if (!in_array($field, $this->allowedFields, true)) { + if (!in_array($field, $this->allowedFields, true) && !in_array($field, $this->resolveSelectpageFields(), true)) { throw new Exception('Invalid parameters'); } } -- Gitee