Rename cid so we can retreive it easily on file

This commit is contained in:
Laurent Destailleur 2022-10-28 18:11:54 +02:00
parent 4596a16cdb
commit 29d819be5e

View File

@ -1783,7 +1783,7 @@ class CMailFile
foreach ($matches[1] as $key => $ext) {
// We save the image to send in disk
$filecontent = $matches[2][$key];
$cid = dol_hash($this->html, 'md5');
$cid = 'cid000'.dol_hash($this->html, 'md5');
$destfiletmp = $images_dir.'/'.$cid.'.'.$ext;
$fhandle = @fopen($destfiletmp, 'w');