FIX to avoid wrong path of file (#25320)
This commit is contained in:
parent
9044952f5c
commit
76d6a30d48
1 changed files with 1 additions and 1 deletions
|
|
@ -808,7 +808,7 @@ class FormMail extends Form
|
|||
$relativepathtofile = substr($val, (strlen(DOL_DATA_ROOT) - strlen($val)));
|
||||
|
||||
if ($conf->entity > 1) {
|
||||
$relativepathtofile = str_replace($conf->entity.'/', '', $relativepathtofile);
|
||||
$relativepathtofile = str_replace('/'.$conf->entity.'/', '/', $relativepathtofile);
|
||||
}
|
||||
// Try to extract data from full path
|
||||
$formfile_params = array();
|
||||
|
|
|
|||
Loading…
Reference in a new issue