From: hickert Date: Fri, 2 Sep 2005 07:13:09 +0000 (+0000) Subject: Added check for application name X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4c3de1bdda0e0dada2ac39f04c75860524068716;p=gosa.git Added check for application name git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1297 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/applications/class_applicationGeneric.inc b/plugins/admin/applications/class_applicationGeneric.inc index 351d6e458..c4e8ea300 100644 --- a/plugins/admin/applications/class_applicationGeneric.inc +++ b/plugins/admin/applications/class_applicationGeneric.inc @@ -133,6 +133,7 @@ class application extends plugin function save_object() { if (isset($_POST['cn'])){ + plugin::save_object(); /* Save application flags */ @@ -244,6 +245,11 @@ class application extends plugin if ($this->cn == ""){ $message[]= _("Required field 'Name' is not filled."); } + + if(preg_match("/[^a-z0-9]/",$this->cn)) { + $message[]=_("Invalid character in application name. Only a-z 0-9 are allowed."); + } + if ($this->gosaApplicationExecute == ""){ $message[]= _("Required field 'Execute' is not filled."); }