From 08683d36107e3161c03b5daa55eb5e84912ce0f7 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 1 Jun 2006 07:21:50 +0000 Subject: [PATCH] Added check to avoid empty logon script names git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3598 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/personal/environment/class_logonManagementDialog.inc | 4 ++++ 1 file changed, 4 insertions(+) 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."); } -- 2.30.2