Code

Check of sharename should still check if only
[gosa.git] / trunk / gosa-plugins / goto / admin / systems / services / nfs / class_servNfs.inc
index ebe89524de64e879ce722e77f8189aa962393e3d..b095c10c039ebed3930cebd28bc647360f162f6a 100644 (file)
@@ -184,7 +184,7 @@ class servnfs extends plugin
         $message[]= _("'Path / Volume' must be of format 'server:port'!");
       }
     } elseif ($this->type == "CIFS" || $this->type == "samba") {
-      if (!preg_match("/^[^\$]+[\$]*$/", $this->path)) {
+      if (!preg_match("/[a-z0-9%\/_.+-]+[\$]*$/i", $this->path)) {
         $message[] = _("'$' is only allowed at the end of the share name for hidden shares");
       }
     } else {