From 2f827a5178a6d5255aac9ce8f84f8e506cdead7d Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Tue, 30 May 2023 12:01:14 -0400 Subject: [PATCH] Fix EPATH substitution --- scripts/zmfilter.pl.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/zmfilter.pl.in b/scripts/zmfilter.pl.in index 35ec775f6..2180c2737 100644 --- a/scripts/zmfilter.pl.in +++ b/scripts/zmfilter.pl.in @@ -717,7 +717,8 @@ sub substituteTags { $text =~ s/%EP%/$url?view=event&mid=$Event->{MonitorId}&eid=$Event->{Id}/g; $text =~ s/%EPS%/$url?view=event&mode=stream&mid=$Event->{MonitorId}&eid=$Event->{Id}/g; $text =~ s/%EPI%/$url?view=event&mode=still&mid=$Event->{MonitorId}&eid=$Event->{Id}/g; - $text =~ s/%EPATH%/$Event->Path()/g; + my $path = $Event->Path(); + $text =~ s/%EPATH%/$path/g; $text =~ s/%EI%/$Event->{Id}/g; $text =~ s/%EID%/$Event->{Id}/g; $text =~ s/%EN%/$Event->{Name}/g;