From 854f3012215a951c6e5785ef6c65933775b4a5b2 Mon Sep 17 00:00:00 2001 From: psc Date: Tue, 9 Feb 2010 20:14:25 +0000 Subject: [PATCH] Apply patch for #4186 Allow dashes in share names. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@15605 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../goto/admin/systems/services/nfs/class_servNfs.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 371957ab6..35c5155d5 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 @@ -202,13 +202,13 @@ class servnfs extends plugin $message[]= msgPool::required(_("Type")); } - // only 0-9a-z + // only 0-9a-z\._äüö if(!$this->is_edit){ 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"); } } -- 2.30.2