From: cajus Date: Thu, 11 Feb 2010 08:50:18 +0000 (+0000) Subject: Added dash to share name regex. Closes #853 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4b2708a1635efc7b2ab8ec5699d57ade3850adc4;p=gosa.git Added dash to share name regex. Closes #853 git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15607 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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 e8203e52b..14bd2677e 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,8 @@ 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"); } }