Fix: security

This commit is contained in:
Regis Houssin 2012-07-07 07:58:59 +02:00
parent 7382f4e3ee
commit 928af1a2b3

View File

@ -742,7 +742,7 @@ $heightforframes=48;
// 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;