From: hickert Date: Wed, 7 Sep 2005 09:14:48 +0000 (+0000) Subject: Uodate some checks, and added disk1 disk2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f5ebf9fa6eb755c6b769ae6afc17fcdd9e5fe3fd;p=gosa.git Uodate some checks, and added disk1 disk2 git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1314 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/FAI/class_askClassName.inc b/plugins/admin/FAI/class_askClassName.inc index 46f83eca8..15c87f0a4 100644 --- a/plugins/admin/FAI/class_askClassName.inc +++ b/plugins/admin/FAI/class_askClassName.inc @@ -127,7 +127,12 @@ class askClassName extends plugin if(in_array($this->ClassName,$this->forbidden)){ $message[]=_("The specified class name is already in use for this object type."); - } + } + + if(preg_match("/[^a-z0-9]/i",$this->ClassName)){ + $message[]=_("Please enter a valid class name. Only 0-9 a-z is allowed here."); + } + return ($message); } diff --git a/plugins/admin/FAI/class_faiPartitionTableEntry.inc b/plugins/admin/FAI/class_faiPartitionTableEntry.inc index c56e71d95..a42958123 100644 --- a/plugins/admin/FAI/class_faiPartitionTableEntry.inc +++ b/plugins/admin/FAI/class_faiPartitionTableEntry.inc @@ -37,6 +37,8 @@ class faiPartitionTableEntry extends plugin } } + $this->AvailableDiskNames['disk1']= "disk1"; + $this->AvailableDiskNames['disk2']= "disk2"; /* Default status is new */ $this->status = "new";