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