From 7f906c99657b37031289cc8a3a5c4d800514dd47 Mon Sep 17 00:00:00 2001 From: cajus Date: Wed, 30 Sep 2009 14:04:22 +0000 Subject: [PATCH] Add possibility to add hiden shares git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14420 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../goto/admin/systems/services/nfs/class_servNfs.inc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gosa-plugins/goto/admin/systems/services/nfs/class_servNfs.inc b/gosa-plugins/goto/admin/systems/services/nfs/class_servNfs.inc index 105d9565d..07ca37b97 100644 --- a/gosa-plugins/goto/admin/systems/services/nfs/class_servNfs.inc +++ b/gosa-plugins/goto/admin/systems/services/nfs/class_servNfs.inc @@ -198,8 +198,12 @@ class servnfs extends plugin 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"); + } else { + if (!preg_match("/^[^\$]+\$$/", $this->name)) { + $message[] = _("Hidden shares must have a '$' at the end of the name!"); + } } } -- 2.30.2