summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0e415b9)
raw | patch | inline | side by side (parent: 0e415b9)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 19 Jun 2009 09:09:49 +0000 (09:09 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 19 Jun 2009 09:09:49 +0000 (09:09 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13739 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/systems/admin/systems/class_termDNS.inc | patch | blob | history |
diff --git a/gosa-plugins/systems/admin/systems/class_termDNS.inc b/gosa-plugins/systems/admin/systems/class_termDNS.inc
index c31dbeba919b1b916e3233e62d596d71710e544a..ef6f8252a6e8e8a7dd865b64230438044418027c 100644 (file)
/* Assign smarty all DNS attributes */
foreach($this->DNSattributes as $attr){
- $smarty->assign($attr,$this->dnsEntry[$attr]);
+ $smarty->assign($attr,htmlentities($this->dnsEntry[$attr]));
}
/* Assign all needed vars */
/* Get all basic DNS attributes (TTL, Clas ..)*/
foreach($this->DNSattributes as $attr){
if(isset($_POST[$attr])){
- $this->dnsEntry[$attr] = $_POST[$attr];
+ $this->dnsEntry[$attr] = get_post($attr);
}
}
}
$str.=" <tr>".
" <td>".$this->generateRecordListBox($entry['type'],"RecordTypeSelectedFor_".$key)."</td>".
- " <td><input type='text' value='".$entry['value']."' name='RecordValue_".$key."' id='RecordValue_".$key."'></td>".
+ " <td><input type='text' value=\"".htmlentities($entry['value'])."\" name='RecordValue_".$key."' id='RecordValue_".$key."'></td>".
" <td><input type='submit' name='RemoveRecord_".$key."' value='"._("Delete")."' id='RemoveRecord_".$key."'></td>".
"</tr>";
}
" </tr>".
"</table>";
$ret = array("str" => $str, "changeStateForRecords" => $changeStateForRecords);
+
return($ret);
}