From 4e42f80e92a1a6349c447f59136022d6b58c1c52 Mon Sep 17 00:00:00 2001 From: Li Jianxuan Date: Tue, 16 Oct 2012 03:29:43 +0000 Subject: [PATCH] =?UTF-8?q?#403=20=E6=B7=BB=E5=8A=A0=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E7=94=A8=E9=80=94=E5=AD=97=E7=AC=A6=E4=B8=B2=E8=BE=93=E5=85=A5?= =?UTF-8?q?=E6=97=B6=E7=9A=84=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/default/controllers/DataController.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/application/default/controllers/DataController.php b/application/default/controllers/DataController.php index a107530e..3d7f7e20 100755 --- a/application/default/controllers/DataController.php +++ b/application/default/controllers/DataController.php @@ -1001,6 +1001,18 @@ class DataController extends Zend_Controller_Action exit(); } + if(mb_strlen($datas['project'],"utf-8")<8) + { + echo $form.''; + exit(); + } + + if(preg_match('/^\d+$/',$datas['project'])) + { + echo $form.''; + exit(); + } + $data = array( 'userid' => $userid, 'username' => $datas['username'],