Minahito
minah****@users*****
2006年 1月 16日 (月) 10:09:46 JST
Index: xoops2jp/html/modules/legacyRender/admin/forms/TplsetCloneForm.class.php diff -u xoops2jp/html/modules/legacyRender/admin/forms/TplsetCloneForm.class.php:1.1.2.5 xoops2jp/html/modules/legacyRender/admin/forms/TplsetCloneForm.class.php:1.1.2.6 --- xoops2jp/html/modules/legacyRender/admin/forms/TplsetCloneForm.class.php:1.1.2.5 Mon Jan 16 10:07:04 2006 +++ xoops2jp/html/modules/legacyRender/admin/forms/TplsetCloneForm.class.php Mon Jan 16 10:09:45 2006 @@ -34,8 +34,6 @@ function validateTplset_name() { - parent::validateTplset_name(); - // // Check unique name // @@ -45,7 +43,11 @@ if ($handler->getCount(new Criteria('tplset_name', $this->get('tplset_name'))) > 0) { $this->addErrorMessage(_AD_LEGACYRENDER_ERROR_UNIQUE_NAME); } + if (!preg_match("/^[a-z0-9\_]+$/i", $this->get('tplset_name'))) { + $this->addErrorMessage(_AD_LEGACYRENDER_ERROR_TPLSET_NAME_RULE); + } } + } function load(&$obj)