From 348647208f4f55c0f6b396e5de8d75323bb2dd7a Mon Sep 17 00:00:00 2001 From: james Date: Thu, 20 Dec 2007 18:38:17 +0000 Subject: [PATCH] put the type and stock checks back in, to make sure we get the right stuff. --- admin/reports.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/admin/reports.php b/admin/reports.php index 78383967..8998135f 100644 --- a/admin/reports.php +++ b/admin/reports.php @@ -64,7 +64,7 @@ $type = $_POST['type']; $stock = $_POST['stock']; - /* + if(!array_key_exists($type, $report_options['type']['values'])) { echo "Invalid format: type=$type"; exit; @@ -73,7 +73,6 @@ echo "Invalid stock: stock=$stock"; exit; } - */ mysql_query("INSERT INTO `reports_committee` (`id`, `users_id` , `reports_id` , `category` , `comment` , `format` , `stock`)