diff --git a/webapp/controller/BagController.class.php b/webapp/controller/BagController.class.php index f6533871..91faca50 100644 --- a/webapp/controller/BagController.class.php +++ b/webapp/controller/BagController.class.php @@ -180,6 +180,12 @@ class BagController extends BaseAuthedController { $errMsg = 'Parameter error name length must not be greater than 16'; return; } + if(!preg_match("/^[a-z\d]*$/i",$name)) + { + $errCode = 5; + $errMsg = 'Excuse me , the name you entered is in the wrong format.'; + return; + } $nameService = new services\NameService(); if (!$nameService->verifyNameSign($name, $nameSign)){ $errCode = 5;