Fix. function name

This commit is contained in:
Alexey Melnichuk
2015-11-10 20:49:46 +03:00
parent 2fe16021a1
commit 5506d7ce80

View File

@@ -43,7 +43,7 @@
local IS_WINDOWS = (package.config:sub(1,1) == '\\')
local function Q(s)
local function enquote(s)
local q = IS_WINDOWS and '"' or "'"
if s:find('%s') or s:find(q, nil, true) then
s = q .. s:gsub(q, q..q) .. q
@@ -192,15 +192,15 @@
--fax to email
-- cmd = "lua" .. " " .. Q(scripts_dir .. "/fax_to_email.lua") .. " ";
cmd = Q(php_dir.."/"..php_bin).." "..Q(document_root.."/secure/fax_to_email.php").." ";
cmd = cmd .. "email="..Q(fax_email).." ";
cmd = cmd .. "extension="..Q(fax_extension).." ";
cmd = cmd .. "name="..Q(fax_file).." ";
cmd = cmd .. "messages=" .. Q("result:"..fax_result_text.." sender:"..fax_remote_station_id.." pages:"..fax_document_total_pages).." ";
cmd = cmd .. "domain="..Q(domain_name).." ";
cmd = cmd .. "caller_id_name=" .. Q(caller_id_name or '') .. " ";
cmd = cmd .. "caller_id_number=" .. Q(caller_id_number or '') .. " ";
-- cmd = "lua" .. " " .. enquote(scripts_dir .. "/fax_to_email.lua") .. " ";
cmd = enquote(php_dir.."/"..php_bin).." "..enquote(document_root.."/secure/fax_to_email.php").." ";
cmd = cmd .. "email="..enquote(fax_email).." ";
cmd = cmd .. "extension="..enquote(fax_extension).." ";
cmd = cmd .. "name="..enquote(fax_file).." ";
cmd = cmd .. "messages=" .. enquote("result:"..fax_result_text.." sender:"..fax_remote_station_id.." pages:"..fax_document_total_pages).." ";
cmd = cmd .. "domain="..enquote(domain_name).." ";
cmd = cmd .. "caller_id_name=" .. enquote(caller_id_name or '') .. " ";
cmd = cmd .. "caller_id_number=" .. enquote(caller_id_number or '') .. " ";
if #fax_forward_number > 0 then
cmd = cmd .. "fax_relay=true ";
end