remove <small></small> from hipchat messages; fixes #3200
Costa Tsaousis (ktsaou) committed
Jan 3, 2018 at 04:36 UTC
3ed590cc6f90c7071c6568420baef5a2a284a6f1
1 file changed
+4
plugins.d/alarm-notify.sh
+4
@@ -1029,6 +1029,10 @@ send_twilio() {
1029
send_hipchat() {
1030
local authtoken="${1}" recipients="${2}" message="${3}" httpcode sent=0 room color sender msg_format notify
1031
1032
+ # remove <small></small> from the message
1033
+ message="${message//<small>/}"
1034
+ message="${message//<\/small>/}"
1035
+
1036
if [ "${SEND_HIPCHAT}" = "YES" -a ! -z "${HIPCHAT_SERVER}" -a ! -z "${authtoken}" -a ! -z "${recipients}" -a ! -z "${message}" ]
1037
then
1038
# A label to be shown in addition to the sender's name