Code

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

gosa-plugins/gofon/gofon/conference/class_phoneConferenceGeneric.inc

index 22f096eb9f5dcc5f2a6deeaa6e01ee3b8f25cb39..f23d5982b2f2249eb120d3800a0258bf1b5a7b00 100644 (file)
@@ -174,7 +174,7 @@ class conference extends plugin
 
 
     foreach ($this->attributes as $val){
-      $smarty->assign("$val", $this->$val);
+      $smarty->assign("$val", set_post($this->$val));
       if(!$this->$val){
         $smarty->assign($val."CHK", "");
       }else{
@@ -189,9 +189,9 @@ class conference extends plugin
         $tmp[$dn]  = $val['SERVER'];
       }
     }
-    $smarty->assign("language",$this->language);
+    $smarty->assign("language", $this->language);
     $smarty->assign("languages",$this->languages);
-    $smarty->assign("goFonHomeServers",$tmp);
+    $smarty->assign("goFonHomeServers",set_post($tmp));
     $smarty->assign("goFonConferenceOptions",              array("D"=>"Conference ","d"=>"Conference without PIN"));
     $smarty->assign("goFonConferenceOptionFormats",    array("WAV"=>"Wave","GSM"=>"GSM","WAV49"=>"Wave49"));
     $smarty->assign("goFonConferenceOption",        $this->goFonConferenceOption_D);
@@ -284,7 +284,7 @@ class conference extends plugin
         if($this->acl_is_writeable($acl_name)){
 
           if(isset($_POST[$attrs])){
-            $this->$attrs = $_POST[$attrs];
+            $this->$attrs = get_post($attrs);
           }else{
             $this->$attrs = false;
           }
@@ -774,8 +774,8 @@ class conference extends plugin
   function getCopyDialog()
   {
     $smarty = get_smarty();
-    $smarty->assign("cn" ,$this->cn);
-    $smarty->assign("telephoneNumber" ,$this->telephoneNumber);
+    $smarty->assign("cn" ,set_post($this->cn));
+    $smarty->assign("telephoneNumber" ,set_post($this->telephoneNumber));
     $str = $smarty->fetch(get_template_path("paste_generic.tpl",TRUE));
     $ret = array();
     $ret['string'] = $str;
@@ -787,10 +787,10 @@ class conference extends plugin
   function saveCopyDialog()
   {
     if(isset($_POST['cn'])){
-      $this->cn = $_POST['cn'];
+      $this->cn = get_post('cn');
     }
     if(isset($_POST['telephoneNumber'])){
-      $this->telephoneNumber = $_POST['telephoneNumber'];
+      $this->telephoneNumber = get_post('telephoneNumber');
     }
   }