Code

Apply patch for #4186
authorpsc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 9 Feb 2010 20:14:25 +0000 (20:14 +0000)
committerpsc <psc@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 9 Feb 2010 20:14:25 +0000 (20:14 +0000)
Allow dashes in share names.

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@15605 594d385d-05f5-0310-b6e9-bd551577e9d8

trunk/gosa-plugins/goto/admin/systems/services/nfs/class_servNfs.inc

index 371957ab65f78d926cf01e510d646e5ccd9fb32e..35c5155d57bd1c951cd2a0b1984c28eeefc7ec2b 100644 (file)
@@ -202,13 +202,13 @@ class servnfs extends plugin
       $message[]= msgPool::required(_("Type"));
     }
 
-    // only 0-9a-z
+    // only 0-9a-z\._äüö
     if(!$this->is_edit){
       if(empty($this->name)){
         $message[]= msgPool::required(_("Name"));
       }
-      if(!preg_match("/^[a-z0-9\._äüö]*$/ui",$this->name)){
-        $message[]= msgPool::invalid(_("Name"),$this->name,"/[a-z0-9\._äüö]/ui");
+      if(!preg_match("/^[a-z0-9-\._äüö]*$/ui",$this->name)){
+        $message[]= msgPool::invalid(_("Name"),$this->name,"/[a-z0-9-\._äüö]/ui");
       }
     }