This commit is contained in:
f0o
2016-02-10 15:21:31 +00:00
parent 2b55c06d9e
commit 21e94b3e3a
8 changed files with 23 additions and 11 deletions
+13
View File
@@ -1255,3 +1255,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;
}
}