Code

Updated setup to use xmlentities
[gosa.git] / gosa-core / setup / class_setupStep_Config2.inc
index ecf986f830f501abb14701c273bc40db3542b3dc..97a5c02e8c5a2ef58df93fd662936eb505c8a60f 100644 (file)
@@ -93,12 +93,14 @@ class Step_Config2 extends setup_step
     $this->mail_methods = $this->get_available_mail_classes();
     /* On first call check for rid/sid base */
     $cv = $this->parent->captured_values;
-    $ldap = new LDAP($cv['admin'],
+    $ldap_l = new LDAP($cv['admin'],
         $cv['password'],
         $cv['connection'],
         FALSE,
         $cv['tls']);
 
+    $ldap = new ldapMultiplexer($ldap_l);
+
     $ldap->cd($cv['base']);
     $ldap->search("(objectClass=sambaDomain)",array("dn"));
     if($ldap->count()){
@@ -159,7 +161,7 @@ class Step_Config2 extends setup_step
     $smarty->assign("samba_settings",$this->samba_settings);
     $smarty->assign("bool",array(FALSE => _("No"), TRUE => _("Yes")));
     foreach($this->attributes as $attr){
-      $smarty->assign($attr,$this->$attr);
+      $smarty->assign($attr,xmlentities($this->$attr));
     }
     $smarty->assign("timezone"     ,$this->timezone);
     $smarty->assign("timezones"    ,$this->timezones);