From b345faf058bf6349f15a13d52ddfdbb335870781 Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Thu, 29 Nov 2012 23:05:34 +0000 Subject: [PATCH] Improve the backslash escaping. --- includes/install/scripts/xml_handler.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/install/scripts/xml_handler.lua b/includes/install/scripts/xml_handler.lua index 40a445aa88..7fd0976154 100644 --- a/includes/install/scripts/xml_handler.lua +++ b/includes/install/scripts/xml_handler.lua @@ -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