From 5ebdda1c85aa399e66f5de6dbb340721c247dcc7 Mon Sep 17 00:00:00 2001 From: chenzhi Date: Sat, 9 May 2020 10:12:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=90=88=E4=BD=9C=E6=96=B9?= =?UTF-8?q?=E5=8F=AF=E4=B8=BA=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/Controller/PartnerController.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Application/Admin/Controller/PartnerController.class.php b/Application/Admin/Controller/PartnerController.class.php index a469ac93d..c583e27f2 100644 --- a/Application/Admin/Controller/PartnerController.class.php +++ b/Application/Admin/Controller/PartnerController.class.php @@ -200,7 +200,7 @@ class PartnerController extends ThinkController public function add() { if ($_POST) { - $partner = I('post.partner', ''); + $partner = trim(I('post.partner', '')); $status = intval(I('post.status', 1)); if (empty($partner)) { @@ -291,7 +291,7 @@ class PartnerController extends ThinkController $model = M($this->modelName, 'tab_'); if ($_POST) { - $partner = I('post.partner', ''); + $partner = trim(I('post.partner', '')); $status = intval(I('post.status', 1)); $id = intval(I('post.id', 0));