Code

Updated post handling, enables utf-8 support.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 14 Jul 2010 07:16:52 +0000 (07:16 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 14 Jul 2010 07:16:52 +0000 (07:16 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18999 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/openxchange/personal/connectivity/openxchange/class_oxchangeAccount.inc

index 3fdaaa6f9d14cd9b5b4adca41af9fceca98a0f90..4451edbe162b59e9ca20082f75ee7e70ce7f869e 100644 (file)
@@ -91,7 +91,7 @@ class oxchangeAccount extends plugin
 
     /* Load attributes */
     foreach($this->attributes as $val){
-      $smarty->assign("$val", $this->$val);
+      $smarty->assign("$val", set_post($this->$val));
     }
     if ($this->is_account){
       $smarty->assign("oxchangeState", "checked");
@@ -115,7 +115,6 @@ class oxchangeAccount extends plugin
 
     $smarty->assign("timezones", $this->timezones);
 
-
     if ($this->parent !== NULL){
       $smarty->assign("tabbed", 1);
     }else{
@@ -251,7 +250,7 @@ class oxchangeAccount extends plugin
     /* Get objects */
     foreach(array("OXTimeZone","OXTaskDays","OXAppointmentDays") as $name) {
       if($this->acl_is_writeable($name) && isset($_POST[$name])){
-        $this->$name = $_POST[$name];
+        $this->$name = get_post($name);
       } 
     }