------------------------------------------------------------------------ r7451 | cigamit | 2014-06-15 15:54:20 -0600 (Sun, 15 Jun 2014) | 1 line Add some validation ------------------------------------------------------------------------ Index: branches/0.8.8/graph_templates_inputs.php =================================================================== --- branches/0.8.8/graph_templates_inputs.php (revision 7450) +++ branches/0.8.8/graph_templates_inputs.php (revision 7451) @@ -52,6 +52,11 @@ $graph_input_values = array(); $selected_graph_items = array(); + /* ================= input validation ================= */ + input_validate_input_number(get_request_var_post("graph_template_input_id")); + input_validate_input_number(get_request_var_post("graph_template_id")); + /* ==================================================== */ + $save["id"] = $_POST["graph_template_input_id"]; $save["hash"] = get_hash_graph_template($_POST["graph_template_input_id"], "graph_template_input"); $save["graph_template_id"] = $_POST["graph_template_id"];