From 3c8d7f8e61eac568c0904353dd0ea3be9a1ad57c Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 27 Apr 2011 08:08:18 +0000 Subject: [PATCH] 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 --- .../admin/newConfigManagement/class_newConfigManagement.inc | 2 ++ 1 file changed, 2 insertions(+) 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]/'); } } -- 2.30.2