From: hickert Date: Thu, 1 Jun 2006 07:21:50 +0000 (+0000) Subject: Added check to avoid empty logon script names X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=08683d36107e3161c03b5daa55eb5e84912ce0f7;p=gosa.git Added check to avoid empty logon script names git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3598 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/personal/environment/class_logonManagementDialog.inc b/plugins/personal/environment/class_logonManagementDialog.inc index 373b1d25a..98ce41ff3 100644 --- a/plugins/personal/environment/class_logonManagementDialog.inc +++ b/plugins/personal/environment/class_logonManagementDialog.inc @@ -97,6 +97,10 @@ class logonManagementDialog extends plugin $message[] = _("Specified name is invalid."); } + if(empty($this->LogonName)){ + $message[] = _("Please specify a valid script name."); + } + if(preg_match("/[^a-z0-9,\.-;:_\(\)!\? ]/i",$this->LogonDescription)){ $message[] = _("Specified description contains invalid characters."); }