Skip to content

Commit

Permalink
fix : invoid sql injection
Browse files Browse the repository at this point in the history
  • Loading branch information
grandoc committed Nov 21, 2019
1 parent 54d67de commit 9996c1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htdocs/accountancy/bookkeeping/list.php
Expand Up @@ -575,8 +575,8 @@
}
if ($action == 'delbookkeepingyear') {
$form_question = array();
$delyear = GETPOST('delyear');
$deljournal = GETPOST('deljournal');
$delyear = GETPOST('delyear', 'int');
$deljournal = GETPOST('deljournal', 'alpha');

if (empty($delyear)) {
$delyear = dol_print_date(dol_now(), '%Y');
Expand Down

0 comments on commit 9996c1c

Please sign in to comment.