From ef4d3e4666073fe038cb5b519c56f9cd2f35f97c Mon Sep 17 00:00:00 2001 From: jfefe Date: Tue, 15 Oct 2013 21:07:11 +0200 Subject: [PATCH] Fix : use GETPOST function into CRON module --- htdocs/public/cron/cron_run_jobs.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/htdocs/public/cron/cron_run_jobs.php b/htdocs/public/cron/cron_run_jobs.php index 7f25cfaf63c..298727ea5df 100644 --- a/htdocs/public/cron/cron_run_jobs.php +++ b/htdocs/public/cron/cron_run_jobs.php @@ -44,7 +44,7 @@ dol_include_once("/cron/class/cronjob.class.php"); global $langs, $conf; // Check the key, avoid that a stranger starts cron -$key = $_GET['securitykey']; +$key = GETPOST('securitykey','alpha'); if (empty($key)) { echo 'securitykey is require'; exit; @@ -55,7 +55,7 @@ if($key != $conf->global->CRON_KEY) exit; } // Check the key, avoid that a stranger starts cron -$userlogin = $_GET['userlogin']; +$userlogin = GETPOST('userlogin','alpha'); if (empty($userlogin)) { echo 'userlogin is require'; exit; @@ -74,7 +74,7 @@ if ($result<0) { exit; } } -$id = $_GET['id']; +$id = GETPOST('id','int'); // Language Management $langs->load("admin");