trim(getPOST("f_name", null, $filter['name'])), 'dst' => trim(getPOST("f_dst", null, '')), 'proto' => trim(getPOST("f_proto", null, '')), 'dstport' => str_replace(':', '-', trim(getPOST("f_dstport", null, ''))), 'srcport' => str_replace(':', '-', trim(getPOST("f_srcport", null, ''))), 'description' => trim(getPOST("f_description", null, '')) ]; update_record($db_link, "filter_list", "id = ?", $new, [$id]); header("Location: " . $_SERVER["REQUEST_URI"]); exit; } unset($_POST); require_once ($_SERVER['DOCUMENT_ROOT']."/inc/header.php"); print_filters_submenu($page_url); print "