Fix washing html from rcube_attachment_handler (#9785)

This probably wasn't implemented previously because HTML-parts usually
didn't run through get.php.
This commit is contained in:
Pablo Zmdl
2025-03-16 12:45:15 +01:00
committed by GitHub
parent b013cd1c73
commit 99236f3be4

View File

@@ -309,7 +309,13 @@ class rcmail_attachment_handler
// show images?
$is_safe = $this->is_safe();
return rcmail_action_mail_index::wash_html($body, ['safe' => $is_safe, 'inline_html' => false]);
if (isset($this->part->replaces)) {
$wash_replacements = $this->part->replaces;
} else {
$wash_replacements = [];
}
return rcmail_action_mail_index::wash_html($body, ['safe' => $is_safe, 'inline_html' => false], $wash_replacements);
}
/**