From: cajus Date: Thu, 17 Jul 2008 07:57:01 +0000 (+0000) Subject: Allow "-" and "_" in application names X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=39f2f69505c50379f28905ef9d602507260ec0de;p=gosa.git Allow "-" and "_" in application names git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11693 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto/admin/applications/class_applicationGeneric.inc b/gosa-plugins/goto/admin/applications/class_applicationGeneric.inc index 820c9cea0..d5ccca44a 100644 --- a/gosa-plugins/goto/admin/applications/class_applicationGeneric.inc +++ b/gosa-plugins/goto/admin/applications/class_applicationGeneric.inc @@ -426,7 +426,7 @@ class application extends plugin } if(preg_match("/[^a-z0-9]/",$this->cn)) { - $message[]=msgPool::invalid(_("Name"),$this->cn,"/^[a-z0-9]*$/"); + $message[]=msgPool::invalid(_("Name"),$this->cn,"/^[a-z0-9_-]*$/"); } if ($this->gosaApplicationExecute == ""){