Merge pull request #2979 from f0o/sanity

[WIP] Sanity!
This commit is contained in:
Neil Lathwood
2016-02-16 21:44:10 +00:00
37 changed files with 135 additions and 117 deletions

View File

@@ -1265,3 +1265,16 @@ 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) {
$tmp = htmlspecialchars($item);
if( !empty($tmp) ){
$item = $tmp;
}
}