Code

Fixed saving of printer membership.
[gosa.git] / plugins / personal / environment / class_logonManagementDialog.inc
index a8a2821b069d83649ac5d19b66618a400495836d..98ce41ff312a27e1e7454f321ab4c79e3ff2337b 100644 (file)
@@ -80,7 +80,7 @@ class logonManagementDialog extends plugin
     if(isset($_POST['dialogissubmitted'])){
       foreach($this->attributes as $attr){
         if(isset($_POST[$attr])){
-          $this->$attr= $_POST[$attr]
+          $this->$attr = stripslashes($_POST[$attr])
         }else{
           $this->$attr = false;
         }
@@ -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.");
     }