From: hickert Date: Wed, 27 Apr 2011 08:08:18 +0000 (+0000) Subject: Ensure that we enter valid names for config items X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=3c8d7f8e61eac568c0904353dd0ea3be9a1ad57c;p=gosa.git Ensure that we enter valid names for config items git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20771 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc b/gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc index 4ab023fd5..45d8c1b43 100644 --- a/gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc +++ b/gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc @@ -730,6 +730,8 @@ class newConfigManagement extends plugin } if(in_array($values['name'],$usedNames)){ $msgs[] = msgPool::duplicated(_("Name")); + }elseif(preg_match("/[^a-z0-9]/",$values['name'])){ + $msgs[] = msgPool::invalid(_("Name"), $values['name'], '/[a-z0-9]/'); } }