Update fax_retry.lua

This commit is contained in:
FusionPBX 2019-06-14 23:56:56 -06:00 committed by GitHub
parent 2c75b5eece
commit 49038db08c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -16,7 +16,7 @@
--
-- The Initial Developer of the Original Code is
-- Mark J Crane <markjcrane@fusionpbx.com>
-- Copyright (C) 2010 - 2015
-- Copyright (C) 2010 - 2019
-- the Initial Developer. All Rights Reserved.
--
-- Contributor(s):
@ -293,10 +293,11 @@
--for email
email_address = env:getHeader("mailto_address");
--email_address = api:execute("system", "/bin/echo -n "..email_address.." | /bin/sed -e s/\,/\\\\,/g");
if (not email_address) then
if (email_address == nil) then
email_address = '';
else
email_address = email_address:gsub(",", "\\,");
end
email_address = email_address:gsub(",", "\\,");
from_address = env:getHeader("mailfrom_address");
if (from_address == nil) then
from_address = email_address;