Update index.lua (#5970)

* Remove these as they break HTML emails. 
* Remove quotes from Caller ID name and number. 

Same as following commits:

https://github.com/fusionpbx/fusionpbx/commit/29c1d52533fd95ce0b995122471b9b283962bc3f
https://github.com/fusionpbx/fusionpbx/commit/c93c20c4e10796e7b3e64c67565748e83f0a100c
This commit is contained in:
emaktech
2021-06-10 01:09:58 -06:00
committed by GitHub
parent 0891590141
commit e9207b114e
@@ -341,6 +341,12 @@
["X-FusionPBX-Email-Type"] = 'missed';
}
--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
subject = subject:gsub("${caller_id_name}", caller_id_name);
subject = subject:gsub("${caller_id_number}", caller_id_number);
@@ -363,8 +369,6 @@
body = body:gsub(" ", " ");
body = body:gsub("\n", "");
body = body:gsub("\n", "");
body = body:gsub("'", "'");
body = body:gsub([["]], """);
body = trim(body);
--send the email