From: psc Date: Tue, 9 Feb 2010 20:14:25 +0000 (+0000) Subject: Apply patch for #4186 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=854f3012215a951c6e5785ef6c65933775b4a5b2;p=gosa.git 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 --- 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"); } }