From: cajus Date: Fri, 12 Feb 2010 13:50:48 +0000 (+0000) Subject: Updated check. Closes #15609 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5fe8d5321c9f4a2b68b669390b98d7c52e1521b9;p=gosa.git Updated check. Closes #15609 git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15618 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/fai/admin/fai/class_askClassName.inc b/gosa-plugins/fai/admin/fai/class_askClassName.inc index 68a406dcd..945c0d54f 100644 --- a/gosa-plugins/fai/admin/fai/class_askClassName.inc +++ b/gosa-plugins/fai/admin/fai/class_askClassName.inc @@ -137,7 +137,11 @@ class askClassName extends plugin { /* Call common method to give check the hook */ $message= plugin::check(); - + + if($this->objectClass == "FAIscript" && preg_match("/^-/", $this->ClassName)) { + $message[] = msgPool::invalid(_("Name"),preg_replace("/ /","_",$this->ClassName),"/[^_]/"); + } + if($this->ClassName != preg_replace("/ /","",trim($this->ClassName))){ $message[] = msgPool::invalid(_("Name"),preg_replace("/ /","_",$this->ClassName),"/[^_]/"); }