Skip to content

Commit 0f8d840

Browse files
committed
Keep <style> blocks when scrubbing dashboard emails
Dashboard email is scrubbed after its CSS is imported into <style> blocks, but HTML::Scrubber drops <style> by default, so the CSS was stripped whenever it was not inlined into element style="" attributes (the default, and also when CSS::Inliner skips large content). Enable the scrubber's style flag so the CSS survives.
1 parent c7c1dc6 commit 0f8d840

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lib/RT/Dashboard/Mailer.pm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1015,6 +1015,8 @@ sub _RunHeadlessBrowser {
10151015
},
10161016
);
10171017

1018+
# Allow style as it's off by default
1019+
$scrubber->style(1);
10181020
}
10191021
return $scrubber;
10201022
}

0 commit comments

Comments
 (0)