summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 93ea112)
raw | patch | inline | side by side (parent: 93ea112)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 14 Jul 2010 08:51:26 +0000 (08:51 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 14 Jul 2010 08:51:26 +0000 (08:51 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19008 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/gofon/gofon/macro/class_gofonMacro.inc | patch | blob | history | |
gosa-plugins/gofon/gofon/macro/class_gofonMacroParameters.inc | patch | blob | history |
diff --git a/gosa-plugins/gofon/gofon/macro/class_gofonMacro.inc b/gosa-plugins/gofon/gofon/macro/class_gofonMacro.inc
index 2c6b5249ed9389196f33412e28fb3793e94609d3..f2caa10e3386bc3e2ef96325b22dce90ebf831b3 100644 (file)
}
/* Variables */
- $vars = "";
$tmp = array();
$number = 0;
/* Assign all vars to Smarty */
foreach($this->attributes as $ar){
- $smarty->assign($ar, $this->$ar);
+ $smarty->assign($ar, set_post($this->$ar));
}
$smarty->assign("base", $this->baseSelector->render());
- /* Checkboxes */
- $smarty->assign("vars", $vars);
-
if($this->goFonMacroVisible){
$smarty->assign("goFonMacroVisibleChecked"," checked ");
}else{
}
$smarty->assign("cnACL",$this->getacl("cn",$this->initially_was_account));
- $smarty->assign("cn",$this->cn);
+ $smarty->assign("cn",set_post($this->cn));
/* Ensure that macro content is displayed correctly encoded */
- $smarty->assign("goFonMacroContent",htmlentities(utf8_decode ($this->goFonMacroContent)));
+ $smarty->assign("goFonMacroContent",set_post($this->goFonMacroContent));
/* Show main page */
return($smarty->fetch (get_template_path('generic.tpl', TRUE)));
function getCopyDialog()
{
$smarty = get_smarty();
- $smarty->assign("cn" ,$this->cn);
+ $smarty->assign("cn" ,set_post($this->cn));
$str = $smarty->fetch(get_template_path("paste_generic.tpl",TRUE));
$ret = array();
$ret['string'] = $str;
function saveCopyDialog()
{
if(isset($_POST['cn'])){
- $this->cn = $_POST['cn'];
+ $this->cn = get_post('cn');
}
}
diff --git a/gosa-plugins/gofon/gofon/macro/class_gofonMacroParameters.inc b/gosa-plugins/gofon/gofon/macro/class_gofonMacroParameters.inc
index b93b966558b2a4e093b118ce5920dd8ad7b6e283..7f65532eae79568ae05661416dab3a63143fc238 100644 (file)
$vars .="<tr>
<td>
<input name=\"number".$key."\" value='".$key."' type='hidden' ".$disabled.">
- <input name='var".$key."' type='hidden' value='".$para['var']."' ".$disabled.">ARG".$key."
+ <input name='var".$key."' type='hidden' value='".set_post($para['var'])."' ".$disabled.">ARG".$key."
</td>
- <td><input type='text' name='varname".$key."' value='".$para['name']."' ".$disabled."></td>
+ <td><input type='text' name='varname".$key."' value='".set_post($para['name'])."' ".$disabled."></td>
<td>
<select size=1 name='vartype".$key."' ".$disabled.">
<option value='string' ".$sel1.">"._("String")." </option>
<option value='bool' ".$sel3.">"._("Bool")." </option>
</select>
</td>
- <td><input type='text' name='default".$key."' value='".$para['default']."' ".$disabled."></td>
+ <td><input type='text' name='default".$key."' value='".set_post($para['default'])."' ".$disabled."></td>
<td> ";
if($para['check']==false) {
$vars.="<button type='submit' name='del".$key."'>"._("Delete unused")."</button>";
}elseif(preg_match("/^number/",$name)){
/* Set Post vars */
- $key = $_POST[$name];
+ $key = get_post($name);
- $this->goFonMacroParameter[$key]['var'] = $_POST["var".$key];
- $this->goFonMacroParameter[$key]['name'] = $_POST["varname".$key];
- $this->goFonMacroParameter[$key]['type'] = $_POST["vartype".$key];
- $this->goFonMacroParameter[$key]['default']= $_POST["default".$key];
+ $this->goFonMacroParameter[$key]['var'] = get_post("var".$key);
+ $this->goFonMacroParameter[$key]['name'] = get_post("varname".$key);
+ $this->goFonMacroParameter[$key]['type'] = get_post("vartype".$key);
+ $this->goFonMacroParameter[$key]['default']= get_post("default".$key);
}
}