From 1c29a13400777903d863b47b1ef8687d4d2ef293 Mon Sep 17 00:00:00 2001 From: psc Date: Fri, 2 Oct 2009 15:19:38 +0000 Subject: [PATCH] Check of sharename should still check if only the allowed chars are used. (#1960) git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@14499 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../goto/admin/systems/services/nfs/class_servNfs.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trunk/gosa-plugins/goto/admin/systems/services/nfs/class_servNfs.inc b/trunk/gosa-plugins/goto/admin/systems/services/nfs/class_servNfs.inc index ebe89524d..b095c10c0 100644 --- a/trunk/gosa-plugins/goto/admin/systems/services/nfs/class_servNfs.inc +++ b/trunk/gosa-plugins/goto/admin/systems/services/nfs/class_servNfs.inc @@ -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 { -- 2.30.2