FIX Sanitizing menu parameter

This commit is contained in:
Laurent Destailleur 2020-05-01 15:53:56 +02:00
parent 4c27ae6530
commit 1c7873b4f4

View File

@ -185,7 +185,7 @@ else // If external user
// Load the menu manager (only if not already done) // Load the menu manager (only if not already done)
$file_menu = $conf->standard_menu; $file_menu = $conf->standard_menu;
if (GETPOST('menu')) $file_menu=GETPOST('menu'); // example: menu=eldy_menu.php if (GETPOST('menu', 'aZ09')) $file_menu = GETPOST('menu', 'aZ09'); // example: menu=eldy_menu.php
if (! class_exists('MenuManager')) if (! class_exists('MenuManager'))
{ {
$menufound=0; $menufound=0;