From 94e3f145133e5b8d24de1a15c95d1ca6e3a9ce9d Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 18 Jun 2008 09:39:12 +0000 Subject: [PATCH] Fixed setup post hanlding, you are now able to post value with '" git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11355 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/setup/class_setupStep_Config1.inc | 10 +++++----- gosa-core/setup/class_setupStep_Config2.inc | 12 ++++++------ gosa-core/setup/class_setupStep_Config3.inc | 4 ++-- gosa-core/setup/class_setupStep_Feedback.inc | 4 ++-- 4 files changed, 15 insertions(+), 15 deletions(-) diff --git a/gosa-core/setup/class_setupStep_Config1.inc b/gosa-core/setup/class_setupStep_Config1.inc index 1087b6a2b..4ca9e0c0c 100644 --- a/gosa-core/setup/class_setupStep_Config1.inc +++ b/gosa-core/setup/class_setupStep_Config1.inc @@ -81,13 +81,13 @@ class Step_Config1 extends setup_step { $smarty = get_smarty(); $smarty->assign("peopledns",array("uid","cn")); - $smarty->assign("id_settings",$this->id_settings); - $smarty->assign("crypt_methods",$this->crypt_methods); - $smarty->assign("themes",$this->get_themes()); - $smarty->assign("pwd_rules",$this->pwd_rules); + $smarty->assign("id_settings", reverse_html_entities($this->id_settings)); + $smarty->assign("crypt_methods", reverse_html_entities($this->crypt_methods)); + $smarty->assign("themes", reverse_html_entities($this->get_themes())); + $smarty->assign("pwd_rules", reverse_html_entities($this->pwd_rules)); $smarty->assign("bool",array(FALSE => _("No"), TRUE => _("Yes"))); foreach($this->attributes as $attr){ - $smarty->assign($attr,$this->$attr); + $smarty->assign($attr,htmlentities($this->$attr,ENT_QUOTES,"UTF-8")); } /* !!! Attention strict is inverse. If you change this, diff --git a/gosa-core/setup/class_setupStep_Config2.inc b/gosa-core/setup/class_setupStep_Config2.inc index ff3a9718a..89103e75b 100644 --- a/gosa-core/setup/class_setupStep_Config2.inc +++ b/gosa-core/setup/class_setupStep_Config2.inc @@ -155,18 +155,18 @@ class Step_Config2 extends setup_step } $smarty = get_smarty(); - $smarty->assign("sambaDomain_found",$this->sambaDomain_found); - $smarty->assign("generic_settings",$this->generic_settings); - $smarty->assign("mail_settings",$this->mail_settings); - $smarty->assign("mail_methods",$this->mail_methods); - $smarty->assign("samba_settings",$this->samba_settings); + $smarty->assign("sambaDomain_found", $this->sambaDomain_found); + $smarty->assign("generic_settings", reverse_html_entities($this->generic_settings)); + $smarty->assign("mail_settings", reverse_html_entities($this->mail_settings)); + $smarty->assign("mail_methods", reverse_html_entities($this->mail_methods)); + $smarty->assign("samba_settings", reverse_html_entities($this->samba_settings)); $smarty->assign("logging_mysql" ,preg_match("/mysql/",$this->generic_settings['logging'])); $smarty->assign("logging_syslog",preg_match("/syslog/",$this->generic_settings['logging'])); $smarty->assign("bool",array(FALSE => _("No"), TRUE => _("Yes"))); foreach($this->attributes as $attr){ - $smarty->assign($attr,$this->$attr); + $smarty->assign($attr,reverse_html_entities($this->$attr)); } $smarty->assign("timezone" ,$this->timezone); $smarty->assign("timezones" ,$this->timezones); diff --git a/gosa-core/setup/class_setupStep_Config3.inc b/gosa-core/setup/class_setupStep_Config3.inc index 8f8283bba..a9b942fde 100644 --- a/gosa-core/setup/class_setupStep_Config3.inc +++ b/gosa-core/setup/class_setupStep_Config3.inc @@ -91,9 +91,9 @@ class Step_Config3 extends setup_step "contextCSN"=>"contextCSN" )); - $smarty->assign("optional", $this->optional); + $smarty->assign("optional", reverse_html_entities($this->optional)); foreach($this->attributes as $attr){ - $smarty->assign($attr,$this->$attr); + $smarty->assign($attr,reverse_html_entities($this->$attr)); } $smarty->assign("login_attributes",$this->login_attributes); return($smarty -> fetch (get_template_path("../setup/setup_config3.tpl"))); diff --git a/gosa-core/setup/class_setupStep_Feedback.inc b/gosa-core/setup/class_setupStep_Feedback.inc index ef00ce836..f1e9e1259 100644 --- a/gosa-core/setup/class_setupStep_Feedback.inc +++ b/gosa-core/setup/class_setupStep_Feedback.inc @@ -163,11 +163,11 @@ class Step_Feedback extends setup_step $smarty = get_smarty(); foreach($this->attributes as $attr){ - $smarty->assign($attr, $this->$attr); + $smarty->assign($attr, reverse_html_entities($this->$attr)); } $smarty->assign("years",$years); $smarty->assign("features_used",$this->features_used); - $smarty->assign("additional_info",$additional_info); + $smarty->assign("additional_info", reverse_html_entities($additional_info)); $smarty->assign ("must", "*"); return($smarty->fetch(get_template_path("setup_feedback.tpl",TRUE,dirname(__FILE__)))); } -- 2.30.2