From 4560e9c3d281e3e8f4837c7c3258a3ce39c32527 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 7 Oct 2005 05:45:48 +0000 Subject: [PATCH] Removed description checks git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1520 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/fai/class_faiPartitionTable.inc | 5 ----- plugins/admin/fai/class_faiProfile.inc | 4 ---- plugins/admin/fai/class_faiScript.inc | 4 ---- plugins/admin/fai/class_faiScriptEntry.inc | 6 ------ plugins/admin/fai/class_faiTemplate.inc | 4 ---- plugins/admin/fai/class_faiTemplateEntry.inc | 6 ------ plugins/admin/fai/class_faiVariable.inc | 4 ---- 7 files changed, 33 deletions(-) diff --git a/plugins/admin/fai/class_faiPartitionTable.inc b/plugins/admin/fai/class_faiPartitionTable.inc index 3c83b3484..afcc5201b 100644 --- a/plugins/admin/fai/class_faiPartitionTable.inc +++ b/plugins/admin/fai/class_faiPartitionTable.inc @@ -253,11 +253,6 @@ class faiPartitionTable extends plugin $message= array(); - $str = utf8_encode("üöä"); - if(preg_match("/[^a-z0-9".$str."\.,;:\-_\? ]/i",$this->description)){ - $message[]=_("Please enter a valid description."); - } - if((empty($this->cn))||(preg_match("/[^a-z0-9]/i",$this->cn))){ $message[]=_("Please enter a valid name."); } diff --git a/plugins/admin/fai/class_faiProfile.inc b/plugins/admin/fai/class_faiProfile.inc index 19ea3ce00..4b2d26df9 100644 --- a/plugins/admin/fai/class_faiProfile.inc +++ b/plugins/admin/fai/class_faiProfile.inc @@ -204,10 +204,6 @@ class faiProfile extends plugin function check() { $message= array(); - $str = utf8_encode("üöä"); - if((preg_match("/[^a-z0-9".$str."\.,;:\-_\? ]/i",$this->description))){ - $message[]=_("Please enter a valid description."); - } if((empty($this->cn))||(preg_match("/[^a-z0-9]/i",$this->cn))){ $message[]=_("Please enter a valid name. Only 0-9 a-Z are allowed here."); diff --git a/plugins/admin/fai/class_faiScript.inc b/plugins/admin/fai/class_faiScript.inc index 8471f376c..8d129f54e 100644 --- a/plugins/admin/fai/class_faiScript.inc +++ b/plugins/admin/fai/class_faiScript.inc @@ -197,10 +197,6 @@ class faiScript extends plugin function check() { $message= array(); - $str = utf8_encode("üöä"); - if(preg_match("/[^a-z0-9".$str."\.,;:\-_\? ]/i",$this->description)){ - $message[]=_("Please enter a valid description."); - } return ($message); } diff --git a/plugins/admin/fai/class_faiScriptEntry.inc b/plugins/admin/fai/class_faiScriptEntry.inc index 2e7341729..9f93babfa 100644 --- a/plugins/admin/fai/class_faiScriptEntry.inc +++ b/plugins/admin/fai/class_faiScriptEntry.inc @@ -88,12 +88,6 @@ class faiScriptEntry extends plugin { $message= array(); - $str = utf8_encode("üöä"); - - if(preg_match("/[^a-z0-9".$str."\.,;:\-_\? ]/i",$this->Object_description)){ - $message[] = _("Invalid character in description. Please enter a valid description."); - } - if(empty($this->Object_cn)){ $message[] = _("Please enter a name."); } diff --git a/plugins/admin/fai/class_faiTemplate.inc b/plugins/admin/fai/class_faiTemplate.inc index 0d1ea42a6..f2950242b 100644 --- a/plugins/admin/fai/class_faiTemplate.inc +++ b/plugins/admin/fai/class_faiTemplate.inc @@ -199,10 +199,6 @@ class faiTemplate extends plugin function check() { $message= array(); - $str = utf8_encode("üöä"); - if((preg_match("/[^a-z0-9".$str."\.,;:\-_\? ]/i",$this->description))){ - $message[]=_("Please enter a valid description."); - } return ($message); } diff --git a/plugins/admin/fai/class_faiTemplateEntry.inc b/plugins/admin/fai/class_faiTemplateEntry.inc index a3096f173..7176ffbcd 100644 --- a/plugins/admin/fai/class_faiTemplateEntry.inc +++ b/plugins/admin/fai/class_faiTemplateEntry.inc @@ -97,12 +97,6 @@ class faiTemplateEntry extends plugin $message[]=_("Please specify a value for attribute 'path'."); } - $str = utf8_encode("üöä"); - - if(preg_match("/[^a-z0-9".$str."\.,;:\-_\? ]/i",$this->Object_description)){ - $message[] = _("Invalid character in description. Please enter a valid description."); - } - if(empty($this->Object_cn)){ $message[] = _("Please enter a name."); } diff --git a/plugins/admin/fai/class_faiVariable.inc b/plugins/admin/fai/class_faiVariable.inc index ae7d76f63..d14d7d846 100644 --- a/plugins/admin/fai/class_faiVariable.inc +++ b/plugins/admin/fai/class_faiVariable.inc @@ -206,10 +206,6 @@ class faiVariable extends plugin function check() { $message= array(); - $str = utf8_encode("üöä"); - if(preg_match("/[^a-z0-9".$str."\.,;:\-_\? ]/i",$this->description)){ - $message[]=_("Please enter a valid description."); - } return ($message); } -- 2.30.2