From ebb220f1cb0d21f4a643e823cd581e6040af4b12 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Wed, 5 Dec 2018 12:07:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=E8=81=9A=E5=90=88=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E6=96=B9=E6=B3=95=E7=9A=84=E6=AD=A3=E5=88=99=E5=88=A4?= =?UTF-8?q?=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/db/Query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/db/Query.php b/library/think/db/Query.php index 42b1c120..75086bc6 100644 --- a/library/think/db/Query.php +++ b/library/think/db/Query.php @@ -569,7 +569,7 @@ class Query list($distinct, $field) = explode(' ', $field); } - if (!preg_match('/^[\w\.\*]+$/', $field)) { + if (!preg_match('/^[\w\.\+\-\*]+$/', $field)) { throw new Exception('not support data:' . $field); }