mirror of
https://github.com/roundcube/roundcubemail.git
synced 2026-02-20 01:21:20 +01:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user