Code

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

gosa-plugins/squid/personal/connectivity/squid/class_proxyAccount.inc

index ba5e02e9f63d3e85d2e2dbfe68d2076fd0e1abd8..b1c93e36ec42de9839ab77b51656407b5467dc61 100644 (file)
@@ -91,9 +91,9 @@ class proxyAccount extends plugin
     /* Assign quota values */
     $smarty->assign("quota_unit", array("k" => _("KB"), "m" => _("MB"), "g" => _("GB")));
     $smarty->assign("quota_time", array("h" => _("hour"), "d" => _("day"), "w" => _("week"), "m" => _("month")));
-    $smarty->assign("gosaProxyQuotaPeriod", $this->gosaProxyQuotaPeriod);
-    $smarty->assign("quota_size", preg_replace("/[a-z]$/i", "", $this->gosaProxyQuota));
-    $smarty->assign("quota_u", preg_replace("/^[0-9]+/", "", $this->gosaProxyQuota));
+    $smarty->assign("gosaProxyQuotaPeriod", set_post($this->gosaProxyQuotaPeriod));
+    $smarty->assign("quota_size", set_post(preg_replace("/[a-z]$/i", "", $this->gosaProxyQuota)));
+    $smarty->assign("quota_u", set_post(preg_replace("/^[0-9]+/", "", $this->gosaProxyQuota)));
     if ($this->is_account){
       $smarty->assign("proxyState", "checked");
     } else {