mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 01:28:19 +01:00
Merge branch '22.0' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
@@ -331,7 +331,11 @@ class CMailFile
|
||||
// Note because media links are public, this should be useless, except avoid blocking images with email browser.
|
||||
// This converts an embed file with src="/viewimage.php?modulepart... into a cid link
|
||||
// TODO Exclude viewimage used for the read tracker ?
|
||||
$findimg = $this->findHtmlImages($dolibarr_main_data_root.'/medias');
|
||||
$dolibarr_main_data_root_images = $dolibarr_main_data_root;
|
||||
if ($conf->entity !== 1) {
|
||||
$dolibarr_main_data_root_images.='/'.$conf->entity.'/';
|
||||
}
|
||||
$findimg = $this->findHtmlImages($dolibarr_main_data_root_images.'/medias');
|
||||
if ($findimg < 0) {
|
||||
dol_syslog("CMailFile::CMailfile: Error on findHtmlImages");
|
||||
$this->error = 'ErrorInAddAttachmentsImageBaseOnMedia';
|
||||
|
||||
Reference in New Issue
Block a user