Filter out percent signs in transcriptions (#4419)

The percent sign (%) is a special character for gsub.
This commit is contained in:
konradSC
2019-08-08 05:48:55 -04:00
committed by FusionPBX
parent 3b0dcefcea
commit 5ff45c001f

View File

@@ -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);