From 0fe1f9a7dfd896bb0e5db22756e5b6b05f1c9aed Mon Sep 17 00:00:00 2001 From: garcia-sr <82848324+garcia-sr@users.noreply.github.com> Date: Wed, 4 Sep 2024 11:44:54 -0400 Subject: [PATCH] Update scriptd-event-forwarder.bsh Added to resolve the HTML encoded characters --- .../src/main/filtered/etc/examples/scriptd-event-forwarder.bsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opennms-base-assembly/src/main/filtered/etc/examples/scriptd-event-forwarder.bsh b/opennms-base-assembly/src/main/filtered/etc/examples/scriptd-event-forwarder.bsh index 2a9586ce6a6e..a51cb628d348 100644 --- a/opennms-base-assembly/src/main/filtered/etc/examples/scriptd-event-forwarder.bsh +++ b/opennms-base-assembly/src/main/filtered/etc/examples/scriptd-event-forwarder.bsh @@ -62,7 +62,7 @@ void forwardEvent(IEvent event) { else snmpTrapHelper.addVarBinding(trap, ".1.3.6.1.4.1.5813.2.13", "OctetString", "text", "null"); if (event.descr != null) { - descrString = event.descr.replaceAll("<.*>", " ").replaceAll("\\s+", " "); + descrString = event.descr.replaceAll("<.*>", " ").replaceAll(""", "\"").replaceAll("\\s+", " "); snmpTrapHelper.addVarBinding(trap, ".1.3.6.1.4.1.5813.2.16", "OctetString", "text", descrString); } else