Fix: best practice
This commit is contained in:
parent
141fa014e6
commit
dc46b82cf3
@ -28,13 +28,13 @@ 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");
|
||||||
if (! $sortorder) $sortorder="DESC";
|
if (! $sortorder) $sortorder="DESC";
|
||||||
if (! $sortfield) $sortfield="date";
|
if (! $sortfield) $sortfield="date";
|
||||||
@ -127,7 +127,7 @@ if ($what == 'mysql')
|
|||||||
if (! empty($dolibarr_main_db_port)) $param.=" -P ".$dolibarr_main_db_port;
|
if (! empty($dolibarr_main_db_port)) $param.=" -P ".$dolibarr_main_db_port;
|
||||||
if (! GETPOST("use_transaction")) $param.=" -l --single-transaction";
|
if (! GETPOST("use_transaction")) $param.=" -l --single-transaction";
|
||||||
if (GETPOST("disable_fk")) $param.=" -K";
|
if (GETPOST("disable_fk")) $param.=" -K";
|
||||||
if (GETPOST("sql_compat") && GETPOST("sql_compat") != 'NONE') $param.=" --compatible=".preg_replace('/[^a-zA-Z0-9]/','',GETPOST("sql_compat","alpha"));
|
if (GETPOST("sql_compat") && GETPOST("sql_compat") != 'NONE') $param.=" --compatible=".escapeshellarg(GETPOST("sql_compat","alpha"));
|
||||||
if (GETPOST("drop_database")) $param.=" --add-drop-database";
|
if (GETPOST("drop_database")) $param.=" --add-drop-database";
|
||||||
if (GETPOST("sql_structure"))
|
if (GETPOST("sql_structure"))
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user