Code

Added some checks to attributes collected by setup.
[gosa.git] / setup / class_setupStep8.inc
index 31ff4e97e1fac5bd12cabba7357962617299a5ba..822940453d043f7fe692f7fd8747538fdfab2050 100644 (file)
@@ -28,6 +28,12 @@ class setup_step_8 extends setup_step
   var $last_backup_name = "";
 
   function setup_step_8()
+  {
+    $this->update_strings();
+  }
+
+  
+  function update_strings()
   {
     $this->s_title      = _("Configuration file");
     $this->s_info       = _("In this step the configuration file will be created.");
@@ -79,6 +85,9 @@ class setup_step_8 extends setup_step
         header('Content-Disposition: attachment; filename="gosa.conf"');
       }
 
+      $str = $this->get_conf_data();
+      $str = preg_replace("/\n[ ]*\n/","",$str);
+
       echo $this->get_conf_data();
       exit();
     }