atc0005 / go-nagios

Shared Golang package for Nagios plugins
MIT License
8 stars 3 forks source link

Consider replacing `<pre>...</pre>` tags since Nagios strips out `<` and `>` characters #69

Closed atc0005 closed 3 years ago

atc0005 commented 3 years ago

While reviewing and responding to an internal ticket, I was reminded that Nagios strips out characters defined in the illegal_macro_output_chars setting as illegal or dangerous:

illegal_macro_output_chars=`~$^&"|'<>

This prevents this:

https://github.com/atc0005/go-nagios/blob/8007ac77bae39dcef015975e9d49b74d53aba92c/nagios.go#L150-L161

from working as intended. I'll need to use another approach here.

refs: