EspoCRM – Open Source CRM Application
PHP calendarcontactscrmcrm-platformcrm-systemcustomer-portalcustomer-supportcustomizabledocumentsemail-marketingkanbanleadsopen-sourcephpplatformsales-automationsingle-page-applicationsupport
fix inline attachment UUID compatibility
Yuri Kuznetsovf92e261ea83c
diff --git a/application/Espo/Core/Htmlizer/Htmlizer.php b/application/Espo/Core/Htmlizer/Htmlizer.phpindex 61b9006ec1..d5c8bd224f 100644--- a/application/Espo/Core/Htmlizer/Htmlizer.php+++ b/application/Espo/Core/Htmlizer/Htmlizer.php@@ -165,7 +165,7 @@ class Htmlizerif (!$skipInlineAttachmentHandling) {/** @var string $html */$html = preg_replace_callback(- '/\?entryPoint=attachment&id=([A-Za-z0-9]*)/',+ '/\?entryPoint=attachment&id=([A-Za-z0-9\-]*)/',function ($matches) {$id = $matches[1];diff --git a/application/Espo/Tools/Pdf/Dompdf/HtmlComposer.php b/application/Espo/Tools/Pdf/Dompdf/HtmlComposer.phpindex f40b29466c..fe7f0ccd43 100644--- a/application/Espo/Tools/Pdf/Dompdf/HtmlComposer.php+++ b/application/Espo/Tools/Pdf/Dompdf/HtmlComposer.php@@ -196,7 +196,7 @@ class HtmlComposer) ?? '';return preg_replace_callback(- "/src=\"\?entryPoint=attachment&id=([A-Za-z0-9]*)\"/",+ "/src=\"\?entryPoint=attachment&id=([A-Za-z0-9\-]*)\"/",function ($matches) {$id = $matches[1];