Code

Removed description checks
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 7 Oct 2005 05:45:48 +0000 (05:45 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 7 Oct 2005 05:45:48 +0000 (05:45 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1520 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/fai/class_faiPartitionTable.inc
plugins/admin/fai/class_faiProfile.inc
plugins/admin/fai/class_faiScript.inc
plugins/admin/fai/class_faiScriptEntry.inc
plugins/admin/fai/class_faiTemplate.inc
plugins/admin/fai/class_faiTemplateEntry.inc
plugins/admin/fai/class_faiVariable.inc

index 3c83b3484c2edb7b1a5170a0cc5a2d90b755d67f..afcc5201b647b0e3716ff16718bbf4008956d076 100644 (file)
@@ -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.");
     }
index 19ea3ce00cf704e9cf0119545e69c58e9d38c098..4b2d26df9ab93da4723c647cfa347adae104f0a3 100644 (file)
@@ -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.");
index 8471f376cd750265237eb8bc13edc90ca932e669..8d129f54ece544983331bade67fd617832ec0704 100644 (file)
@@ -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);
   }
 
index 2e7341729d8d140d54d7f4429f408eb82ac240d3..9f93babfa4346dade117d9b4ee80462798b076ca 100644 (file)
@@ -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.");
     }
index 0d1ea42a6652df1d9a77581eaf6810277d112c21..f2950242bffcbc5afd4d1f8edb4ba0fa850b25ac 100644 (file)
@@ -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);
   }
 
index a3096f17339dda451121671f50826e482b45b652..7176ffbcdb3f1ca12e3d131deba76bc6145c99e8 100644 (file)
@@ -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.");
     }
index ae7d76f634fb23c828cfb6c34ba878859c0a067f..d14d7d846fb8e8972c01958e2005863c3048f05a 100644 (file)
@@ -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);
   }