Skip to content

Commit

Permalink
Fix : use GETPOST function into CRON module
Browse files Browse the repository at this point in the history
  • Loading branch information
jfefe committed Oct 15, 2013
1 parent 9bc0f54 commit ef4d3e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions htdocs/public/cron/cron_run_jobs.php
Expand Up @@ -44,7 +44,7 @@
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;
Expand All @@ -55,7 +55,7 @@
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;
Expand All @@ -74,7 +74,7 @@
exit;
}
}
$id = $_GET['id'];
$id = GETPOST('id','int');

// Language Management
$langs->load("admin");
Expand Down

0 comments on commit ef4d3e4

Please sign in to comment.