Werk #7427 · Jun 25, 19
mail: don't escape state markers in emails
Incompatible change. Existing setups may behave differently after upgrading. Review the details below before updating.
Since version 1.5.0p14 state markers in HTML emails were escaped and not interpreted as HTML but shown as text. The state marker for CRIT was e.g. shown as:
<b class="stmarkCRITICAL">CRIT</b>
This werk restores the old behaviour and state markers are shown in HTML emails as usual.
If you use the macros HOSTOUTPUT_HTML, SERVICEOUTPUT_HTML, or LONGSERVICEOUTPUT_HTML in custom notification scripts please switch to the macros HOSTOUTPUT, SERVICEOUTPUT, and LONGSERVICEOUTPUT which contain the textual state markers '(!)' and '(!!)' for WARN and CRIT, respectively. The *_HTML variables will be deprecated in 1.6 and removed in 2.0. If you want to replace the textual state markers by HTML code you can use the utility function cmk.notification_plugins.utils.format_plugin_output.
Details
- Class:
- Bug Fixes
- Level:
- Trivial
- Component:
- Notifications
- Versions:
- 2.0.0i1CommunityProUltimate + MT
- 1.6.0b3CommunityProUltimate + MT
- 1.5.0p19CommunityProUltimate + MT