Enforce sanity before returning from database

This commit is contained in:
f0o
2016-02-10 13:52:43 +00:00
parent 37dccb3932
commit a6bca987bf
4 changed files with 15 additions and 1 deletions
+10
View File
@@ -1255,3 +1255,13 @@ function get_port_id ($ports_mapped, $port, $port_association_mode) {
return $port_id;
}
/**
* Sanitize
* @param mixed $item Reference to Item
* @param mixed $key Key
* @return void
*/
function sanitize_array(&$item, $key) {
$item = htmlentities($item);
}