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 44b8e81e81
commit 05f44474de
1 changed files with 1 additions and 0 deletions

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