Use GETPOST
This commit is contained in:
parent
75b7815d08
commit
80bd563fde
@ -56,7 +56,7 @@ if (! empty($_POST['removedfile']) && empty($_POST['removAll']))
|
|||||||
$upload_dir_tmp = $vardir.'/temp';
|
$upload_dir_tmp = $vardir.'/temp';
|
||||||
|
|
||||||
// TODO Delete only files that was uploaded from email form
|
// 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';
|
$action='presend';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1083,7 +1083,7 @@ if (empty($reshook))
|
|||||||
$upload_dir_tmp = $vardir.'/temp';
|
$upload_dir_tmp = $vardir.'/temp';
|
||||||
|
|
||||||
// TODO Delete only files that was uploaded from email form
|
// 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';
|
$action='presend';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -917,7 +917,7 @@ if (empty($reshook))
|
|||||||
$upload_dir_tmp = $vardir.'/temp';
|
$upload_dir_tmp = $vardir.'/temp';
|
||||||
|
|
||||||
// TODO Delete only files that was uploaded from email form
|
// 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';
|
$action='presend';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user