forked from Wavyzz/dolibarr
Use GETPOST
This commit is contained in:
@@ -56,7 +56,7 @@ if (! empty($_POST['removedfile']) && empty($_POST['removAll']))
|
||||
$upload_dir_tmp = $vardir.'/temp';
|
||||
|
||||
// TODO Delete only files that was uploaded from email form
|
||||
dol_remove_file_process($_POST['removedfile'],0);
|
||||
dol_remove_file_process(GETPOST('removedfile','alpha'),0);
|
||||
$action='presend';
|
||||
}
|
||||
|
||||
|
||||
@@ -1083,7 +1083,7 @@ if (empty($reshook))
|
||||
$upload_dir_tmp = $vardir.'/temp';
|
||||
|
||||
// TODO Delete only files that was uploaded from email form
|
||||
dol_remove_file_process($_POST['removedfile'],0);
|
||||
dol_remove_file_process(GETPOST('removedfile','alpha'),0);
|
||||
$action='presend';
|
||||
}
|
||||
|
||||
|
||||
@@ -917,7 +917,7 @@ if (empty($reshook))
|
||||
$upload_dir_tmp = $vardir.'/temp';
|
||||
|
||||
// TODO Delete only files that was uploaded from email form
|
||||
dol_remove_file_process($_POST['removedfile'],0);
|
||||
dol_remove_file_process(GETPOST('removedfile','alpha'),0);
|
||||
$action='presend';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user