From 9e49e0136d364bb4679580a9f146a6dc7c4ceb85 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 9 Jul 2010 14:27:08 +0000 Subject: [PATCH] Updated Application -Made input fields compatible with utf-8 encoded strings. -Fixed design, some fields wern't of type 'text' git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18981 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../admin/applications/class_applicationGeneric.inc | 8 ++++---- .../applications/class_applicationParameters.inc | 12 ++++++------ gosa-plugins/goto/admin/applications/generic.tpl | 8 ++++---- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/gosa-plugins/goto/admin/applications/class_applicationGeneric.inc b/gosa-plugins/goto/admin/applications/class_applicationGeneric.inc index b98c6a036..f6679d491 100644 --- a/gosa-plugins/goto/admin/applications/class_applicationGeneric.inc +++ b/gosa-plugins/goto/admin/applications/class_applicationGeneric.inc @@ -164,7 +164,7 @@ class application extends plugin } /* Fill templating stuff */ - $smarty->assign("cn", $this->cn); + $smarty->assign("cn", set_post($this->cn)); if(!$this->is_release()){ $smarty->assign("bases", $this->get_allowed_bases()); }else{ @@ -184,7 +184,7 @@ class application extends plugin /* Variables */ foreach(array("description", "gosaApplicationExecute", "gosaApplicationName","cn") as $val){ - $smarty->assign($val, $this->$val); + $smarty->assign($val, set_post($this->$val)); } /* Checkboxes */ @@ -199,7 +199,7 @@ class application extends plugin } $smarty->assign("isReleaseApplikation" ,$this->is_release()); - $smarty->assign("gotoLogonScript",htmlentities($this->gotoLogonScript, ENT_COMPAT, 'UTF-8')); + $smarty->assign("gotoLogonScript",set_post($this->gotoLogonScript)); $smarty->assign("base_select", $this->base); /* Show main page */ return($smarty->fetch (get_template_path('generic.tpl', TRUE))); @@ -560,7 +560,7 @@ class application extends plugin function saveCopyDialog() { if(isset($_POST['cn'])){ - $this->cn = $_POST['cn']; + $this->cn = set_post($_POST['cn']); } } diff --git a/gosa-plugins/goto/admin/applications/class_applicationParameters.inc b/gosa-plugins/goto/admin/applications/class_applicationParameters.inc index db49a0025..72ab48f87 100644 --- a/gosa-plugins/goto/admin/applications/class_applicationParameters.inc +++ b/gosa-plugins/goto/admin/applications/class_applicationParameters.inc @@ -112,20 +112,20 @@ class applicationParameters extends plugin $table.="". " ". - " ". + " ". " ". " ". - " ". + " ". "
". " ". " ". - " ". + " ". " ". ""; } } $table.= ""; - $table.=""; + $table.=""; /* Show main page */ $smarty= get_smarty(); @@ -168,10 +168,10 @@ class applicationParameters extends plugin { if (isset($_POST['option0']) && $this->acl_is_writeable("gosaApplicationParameter")){ for ($i= 0; $ioption_name); $i++){ - $this->option_name[$i]= $_POST["option$i"]; + $this->option_name[$i]= get_post("option$i"); $this->option_value[$i]= ""; if ($_POST["value$i"] != ""){ - $this->option_value[$i]= $_POST["value$i"]; + $this->option_value[$i]= get_post("value$i"); } } } diff --git a/gosa-plugins/goto/admin/applications/generic.tpl b/gosa-plugins/goto/admin/applications/generic.tpl index 3c84c9289..07cd5e14d 100644 --- a/gosa-plugins/goto/admin/applications/generic.tpl +++ b/gosa-plugins/goto/admin/applications/generic.tpl @@ -7,7 +7,7 @@ {render acl=$cnACL} - + {/render} @@ -15,7 +15,7 @@ {render acl=$gosaApplicationNameACL} - {/render} @@ -24,7 +24,7 @@ {render acl=$gosaApplicationExecuteACL} - {/render} @@ -33,7 +33,7 @@ {render acl=$descriptionACL} - + {/render} -- 2.30.2