Skip to content
Snippets Groups Projects
Commit 380a8109 authored by Regis Houssin's avatar Regis Houssin
Browse files

Fix: security

parent 1ec9125f
No related branches found
No related tags found
No related merge requests found
...@@ -28,14 +28,14 @@ require_once(DOL_DOCUMENT_ROOT."/core/class/html.formfile.class.php"); ...@@ -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; }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment