Code

| is no longer allowed in goShareServer Tab
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 24 Aug 2005 06:07:22 +0000 (06:07 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 24 Aug 2005 06:07:22 +0000 (06:07 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1215 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_servNfs.inc

index 95957ecc554abb8ae838a8128c89ef37cf3313a1..ebbd08344aecdfae5218b166adc125fdbbe3e587 100644 (file)
@@ -111,6 +111,18 @@ class servnfs extends plugin
       }
     }
 
+    if(preg_match("/\|/",$this->description)){
+      $message[]=_("Description contains invalid characters.");
+    }
+  
+    if(preg_match("/\|/",$this->path)){
+      $message[]=_("Path contains invalid characters.");
+    }
+
+    if(preg_match("/\|/",$this->option)){
+      $message[]=_("Option contains invalid characters.");
+    }
+
     $ldap= $this->config->get_ldap_link();
     $ldap->cd($this->config->current['BASE']);
     $ldap->search("(objectClass=goShareServer)", array("goExportEntry"));