From ef85573da256c6992a0de9492e35a51714af4387 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Thu, 27 Jan 2011 14:26:51 +0000 Subject: [PATCH] todo : check parameters --- html/ajax_ledger.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/html/ajax_ledger.php b/html/ajax_ledger.php index 16c2f54d6..c9908719b 100644 --- a/html/ajax_ledger.php +++ b/html/ajax_ledger.php @@ -39,8 +39,13 @@ require_once('class_anc_operation.php'); require_once('class_idate.php'); require_once('class_ibox.php'); /** - *@todo Check if we receive the needed data (jr_id...) + * Check if we receive the needed data (jr_id...) */ +if ( ! isset ($_REQUEST['act'])|| ! isset ($_REQUEST['jr_id']) + || ! isset ($_REQUEST['div'])) + { + exit(); + } $action=$_REQUEST['act']; $jr_id=$_REQUEST['jr_id']; $div=$_REQUEST['div']; /* the div source and target for javascript */