mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Remove these as they break HTML emails. (#5971)
* Remove these as they break HTML emails. * Remove quotes from Caller ID name and number. Same as following commits:29c1d52533c93c20c4e1
This commit is contained in:
@@ -70,6 +70,12 @@
|
||||
headers = headers..'"X-FusionPBX-Call-UUID":"'..uuid..'",';
|
||||
headers = headers..'"X-FusionPBX-Email-Type":"emergency_call"}';
|
||||
|
||||
--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");
|
||||
@@ -94,8 +100,6 @@
|
||||
body = body:gsub(" ", " ");
|
||||
body = body:gsub("\n", "");
|
||||
body = body:gsub("\n", "");
|
||||
body = body:gsub("'", "'");
|
||||
body = body:gsub([["]], """);
|
||||
body = trim(body);
|
||||
|
||||
--send the email
|
||||
|
||||
Reference in New Issue
Block a user