mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
commit
a934cd49e3
|
|
@ -238,7 +238,7 @@ if ($step == 3 && $datatoimport) {
|
|||
dol_mkdir($conf->import->dir_temp);
|
||||
$nowyearmonth = dol_print_date(dol_now(), '%Y%m%d%H%M%S');
|
||||
|
||||
$fullpath = $conf->import->dir_temp."/".$nowyearmonth.'-'.$_FILES['userfile']['name'];
|
||||
$fullpath = $conf->import->dir_temp."/".$nowyearmonth.'-'.dol_string_nohtmltag(dol_sanitizeFileName($_FILES['userfile']['name']));
|
||||
if (dol_move_uploaded_file($_FILES['userfile']['tmp_name'], $fullpath, 1) > 0) {
|
||||
dol_syslog("File ".$fullpath." was added for import");
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user