Code

Fixed share name check
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 17 Mar 2006 07:13:57 +0000 (07:13 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 17 Mar 2006 07:13:57 +0000 (07:13 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2853 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/systems/class_servNfs.inc

index c4e1ce6463f563d2acd673722cfcbc9efc134783..8b724f4cf07a2432e90bf412f68448dec6120177 100644 (file)
@@ -127,7 +127,7 @@ class servnfs extends plugin
 
     // only 0-9a-z
     if(!$this->is_edit){
-      if(preg_match("/[^a-z0-9.-_]/i",$this->name)){
+      if(preg_match("/[^a-z0-9\.\-_]/i",$this->name)){
         $message[]=_("Please specify a valid name for your setup.");
       }
       if(empty($this->name)){