From 928af1a2b3edd3cfeaaa3c78b2e333310c78fd1d Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Sat, 7 Jul 2012 07:58:59 +0200 Subject: [PATCH] Fix: security --- htdocs/main.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index 1484a9defd5..fe6d41db902 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -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;