From: psc Date: Tue, 29 Sep 2009 11:41:22 +0000 (+0000) Subject: Fix regular expression for the check, weither $ X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4014dbf65377654c5f7f13a158ec5a8ad5704ea8;p=gosa.git Fix regular expression for the check, weither $ is at the end of the share name or not, so that foo$bar leads to an error. (Trac: #1960) git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@14388 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 6540df2c4..6718d009d 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,7 +202,7 @@ class servnfs extends plugin $message[]= msgPool::invalid(_("Name"),$this->name,"/[a-z0-9\._äüö]\$/ui"); } else { - if (!preg_match("/^[^\$].*\$$/", $this->name)) { + if (!preg_match("/^[^\$]*\$$/", $this->name)) { $message[] = _("Hidden shares must have the '$' at the end of the name!"); } }