Code

Updated share checks to allow umlauts
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 11 Oct 2007 13:44:21 +0000 (13:44 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 11 Oct 2007 13:44:21 +0000 (13:44 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7522 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_servNfs.inc

index b53922d48c913cd03d009fa632ae46c7f5035809..8e1d6b15a52e9ad6bf721f540248ab556378d300 100644 (file)
@@ -194,11 +194,11 @@ class servnfs extends plugin
       }
     }
 
-    if(preg_match("/^[a-z0-9\._äüö]*$/ui",$this->description)){
+    if(preg_match("/^[a-z0-9\._äüö\+ -]*$/ui",$this->description)){
       $message[]=_("Description contains invalid characters.");
     }
 
-    if(preg_match("/^[a-z0-9\._äüö]*$/ui",$this->volume)){
+    if(preg_match("/^[a-z0-9\._äüö\+ -]*$/ui",$this->volume)){
       $message[]=_("Volume contains invalid characters.");
     }
 
@@ -206,7 +206,7 @@ class servnfs extends plugin
       $message[]=_("Path contains invalid characters.");
     }
 
-    if(preg_match("/^[a-z0-9\._äüö,=\+ ]*$/ui",$this->option)){
+    if(preg_match("/^[a-z0-9\._äüö,=\+- ]*$/ui",$this->option)){
       $message[]=_("Option contains invalid characters.");
     }