Merge branch '17.0' of git@github.com:Dolibarr/dolibarr.git into 18.0

This commit is contained in:
Laurent Destailleur
2023-07-12 16:41:11 +02:00
5 changed files with 29 additions and 23 deletions

View File

@@ -824,7 +824,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();