Improve the backslash escaping.

This commit is contained in:
Mark Crane
2012-11-29 23:05:34 +00:00
parent 05d909f02a
commit b345faf058

View File

@@ -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