Fix: security

This commit is contained in:
Regis Houssin 2012-07-07 07:58:59 +02:00
parent ca62c3dba8
commit 5ad84406a2

View File

@ -752,7 +752,7 @@ $heightforframes=52;
// Switch to another entity
if (! empty($conf->multicompany->enabled) && GETPOST('action') == 'switchentity')
{
if ($mc->switchEntity(GETPOST('entity')) >= 0)
if ($mc->switchEntity(GETPOST('entity','int')) > 0)
{
Header("Location: ".DOL_URL_ROOT.'/');
exit;