Fix: security
This commit is contained in:
parent
7382f4e3ee
commit
928af1a2b3
@ -742,7 +742,7 @@ $heightforframes=48;
|
|||||||
// Switch to another entity
|
// Switch to another entity
|
||||||
if (! empty($conf->multicompany->enabled) && GETPOST('action') == 'switchentity')
|
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.'/');
|
Header("Location: ".DOL_URL_ROOT.'/');
|
||||||
exit;
|
exit;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user