mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-03 10:23:50 +00:00
Improve the backslash escaping.
This commit is contained in:
@@ -925,7 +925,7 @@
|
||||
XML_STRING = table.concat(xml, "\n");
|
||||
|
||||
--set the cache
|
||||
XML_STRING = XML_STRING:gsub("\\\\\\%$", "\\\\\\\\\\%$");
|
||||
XML_STRING = XML_STRING:gsub("\\", "\\\\");
|
||||
result = trim(api:execute("memcache", "set " .. call_context .. " '"..XML_STRING:gsub("'", "'").."' "..expire["dialplan"]));
|
||||
|
||||
--send the xml to the console
|
||||
|
||||
Reference in New Issue
Block a user