From 05f44474de79b7e1cefd27e1987e39c91a83d78b Mon Sep 17 00:00:00 2001 From: konradSC Date: Thu, 8 Aug 2019 05:48:55 -0400 Subject: [PATCH] Filter out percent signs in transcriptions (#4419) The percent sign (%) is a special character for gsub. --- .../scripts/app/voicemail/resources/functions/send_email.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/resources/install/scripts/app/voicemail/resources/functions/send_email.lua b/resources/install/scripts/app/voicemail/resources/functions/send_email.lua index 7bac94a943..5e4de39ed8 100644 --- a/resources/install/scripts/app/voicemail/resources/functions/send_email.lua +++ b/resources/install/scripts/app/voicemail/resources/functions/send_email.lua @@ -180,6 +180,7 @@ body = body:gsub("${caller_id_number}", caller_id_number); body = body:gsub("${message_date}", message_date); if (transcription ~= nil) then + transcription = transcription:gsub("%%", "*"); body = body:gsub("${message_text}", transcription); end body = body:gsub("${message_duration}", message_length_formatted);