diff --git a/app/scripts/resources/scripts/app/conference_center/index.lua b/app/scripts/resources/scripts/app/conference_center/index.lua index b916923681..c0c6fbf278 100644 --- a/app/scripts/resources/scripts/app/conference_center/index.lua +++ b/app/scripts/resources/scripts/app/conference_center/index.lua @@ -114,6 +114,12 @@ headers = headers..'"X-FusionPBX-Call-UUID":"na",'; headers = headers..'"X-FusionPBX-Email-Type":"conference"}'; + --remove quotes from caller id name and number + caller_id_name = caller_id_name:gsub("'", "'"); + caller_id_name = caller_id_name:gsub([["]], """); + caller_id_number = caller_id_number:gsub("'", "'"); + caller_id_number = caller_id_number:gsub([["]], """); + --prepare the subject local f = io.open(file_subject, "r"); local subject = f:read("*all"); @@ -141,8 +147,6 @@ body = body:gsub(" ", " "); body = body:gsub("\n", ""); body = body:gsub("\n", ""); - body = body:gsub("'", "'"); - body = body:gsub([["]], """); body = trim(body); --send the email