소스 검색

Personalized domain name can not be a pure number
---
个性域名不能为纯数字

star7th 9 년 전
부모
커밋
6eae36d667
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Application/Home/Controller/ItemController.class.php

+ 1 - 1
Application/Home/Controller/ItemController.class.php

@@ -58,7 +58,7 @@ class ItemController extends BaseController {
                     $this->message(L('domain_already_exists'));
                     return false;
                 }
-                if(!ctype_alnum($item_domain)){
+                if(!ctype_alnum($item_domain) ||  is_numeric($item_domain) ){
                     //echo '个性域名只能是字母或数字的组合';exit;
                     $this->message(L('item_domain_illegal'));
                     return false;