Sanitize params

This commit is contained in:
Laurent Destailleur 2020-06-02 20:19:45 +02:00
parent 054d5c5f4c
commit 9e6bb6f784

View File

@ -1160,7 +1160,7 @@ if (empty($reshook))
elseif ($action == 'confirm_validate' && $confirm == 'yes' && $usercanvalidate)
{
$idwarehouse = GETPOST('idwarehouse');
$idwarehouse = GETPOST('idwarehouse', 'int');
$qualified_for_stock_change = 0;
if (empty($conf->global->STOCK_SUPPORTS_SERVICES))
@ -1269,7 +1269,7 @@ if (empty($reshook))
elseif ($action == 'confirm_cancel' && $confirm == 'yes' && $usercanvalidate)
{
$idwarehouse = GETPOST('idwarehouse');
$idwarehouse = GETPOST('idwarehouse', 'int');
$qualified_for_stock_change = 0;
if (empty($conf->global->STOCK_SUPPORTS_SERVICES))