FIX CVE-2018-10095

This commit is contained in:
Laurent Destailleur 2018-04-18 12:32:19 +02:00
parent 7ade4e37f2
commit 1dc466e1fb

View File

@ -29,19 +29,18 @@ require_once DOL_DOCUMENT_ROOT.'/adherents/class/adherent.class.php';
require_once DOL_DOCUMENT_ROOT.'/core/modules/member/modules_cards.php'; require_once DOL_DOCUMENT_ROOT.'/core/modules/member/modules_cards.php';
require_once DOL_DOCUMENT_ROOT.'/core/modules/printsheet/modules_labels.php'; require_once DOL_DOCUMENT_ROOT.'/core/modules/printsheet/modules_labels.php';
$langs->load("members"); $langs->loadLangs(array("members","errors"));
$langs->load("errors");
// Choix de l'annee d'impression ou annee courante. // Choix de l'annee d'impression ou annee courante.
$now = dol_now(); $now = dol_now();
$year=dol_print_date($now,'%Y'); $year=dol_print_date($now,'%Y');
$month=dol_print_date($now,'%m'); $month=dol_print_date($now,'%m');
$day=dol_print_date($now,'%d'); $day=dol_print_date($now,'%d');
$foruserid=GETPOST('foruserid'); $foruserid=GETPOST('foruserid','alphanohtml');
$foruserlogin=GETPOST('foruserlogin'); $foruserlogin=GETPOST('foruserlogin','alphanohtml');
$mode=GETPOST('mode'); $mode=GETPOST('mode','aZ09');
$model=GETPOST("model"); // Doc template to use for business cards $model=GETPOST("model",'aZ09'); // Doc template to use for business cards
$modellabel=GETPOST("modellabel"); // Doc template to use for address sheet $modellabel=GETPOST("modellabel",'aZ09'); // Doc template to use for address sheet
$mesg=''; $mesg='';
$adherentstatic=new Adherent($db); $adherentstatic=new Adherent($db);