From 5ad84406a25625a789e9a6e9c4e59669f899d3af 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 343645a486b..63804a616e9 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -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;