From 5fe8d5321c9f4a2b68b669390b98d7c52e1521b9 Mon Sep 17 00:00:00 2001 From: cajus Date: Fri, 12 Feb 2010 13:50:48 +0000 Subject: [PATCH] Updated check. Closes #15609 git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15618 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/fai/admin/fai/class_askClassName.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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),"/[^_]/"); } -- 2.30.2