From 6d14698c6c56313d470122efe1e014188674be23 Mon Sep 17 00:00:00 2001 From: Flatlogic Bot Date: Sun, 12 Apr 2026 05:01:00 +0000 Subject: [PATCH] fix: Renderowanie maila --- app/diagnostic_functions.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/app/diagnostic_functions.php b/app/diagnostic_functions.php index e5ace3b..a1461a6 100644 --- a/app/diagnostic_functions.php +++ b/app/diagnostic_functions.php @@ -940,13 +940,23 @@ function diagnostic_strip_legacy_report_cta(array $package): array '', $html ); + $html = preg_replace( + '~
\s*\s*]+>\s*\s*
~u', + '', + $html + ) ?? $html; + $html = preg_replace( + '~
DoktorBiznes(?:\.pl)?
~u', + '', + $html + ) ?? $html; $html = preg_replace( '~()(?:\s*]*>\s*)*~u', '$1' . diagnostic_email_brand_marker_html(), $html, 1 ) ?? $html; - if (strpos($html, 'Przejdź do bloga DoktorBiznes.pl') === false) { + if (strpos($html, 'Przejdź do bloga DoktorBiznes.pl') === false && strpos($html, 'DoktorBiznes.pl') === false) { $html = preg_replace( '~()~u', '$1' . diagnostic_email_brand_marker_html(),