Code

Added check to avoid empty logon script names
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 1 Jun 2006 07:21:50 +0000 (07:21 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 1 Jun 2006 07:21:50 +0000 (07:21 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3598 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/personal/environment/class_logonManagementDialog.inc

index 373b1d25aad20df64a85f3296c1b2ccc46eac829..98ce41ff312a27e1e7454f321ab4c79e3ff2337b 100644 (file)
@@ -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.");
     }