Fix: security

This commit is contained in:
Regis Houssin 2012-04-09 22:27:40 +02:00
parent 1ec9125ff9
commit 380a8109e8

View File

@ -28,14 +28,14 @@ require_once(DOL_DOCUMENT_ROOT."/core/class/html.formfile.class.php");
$langs->load("admin"); $langs->load("admin");
$action=GETPOST('action'); $action=GETPOST('action','alpha');
$what=GETPOST("what"); $what=GETPOST('what','alpha');
$export_type=GETPOST("export_type"); $export_type=GETPOST('export_type','alpha');
$file=GETPOST('filename_template'); $file=GETPOST('filename_template','alpha');
$sortfield = GETPOST("sortfield"); $sortfield = GETPOST('sortfield','alpha');
$sortorder = GETPOST("sortorder"); $sortorder = GETPOST('sortorder','alpha');
$page = GETPOST("page"); $page = GETPOST('page','int');
if (! $sortorder) $sortorder="DESC"; if (! $sortorder) $sortorder="DESC";
if (! $sortfield) $sortfield="date"; if (! $sortfield) $sortfield="date";
if ($page < 0) { $page = 0; } if ($page < 0) { $page = 0; }