From c961648083ce4230ed5a01ebb4b6f2deed170cbe Mon Sep 17 00:00:00 2001 From: Mark Crane Date: Fri, 30 Nov 2012 05:08:58 +0000 Subject: [PATCH] The back slash should only be for the cache. --- includes/install/scripts/xml_handler.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/includes/install/scripts/xml_handler.lua b/includes/install/scripts/xml_handler.lua index 7fd0976154..535466f767 100644 --- a/includes/install/scripts/xml_handler.lua +++ b/includes/install/scripts/xml_handler.lua @@ -925,8 +925,8 @@ XML_STRING = table.concat(xml, "\n"); --set the cache - XML_STRING = XML_STRING:gsub("\\", "\\\\"); - result = trim(api:execute("memcache", "set " .. call_context .. " '"..XML_STRING:gsub("'", "'").."' "..expire["dialplan"])); + tmp = XML_STRING:gsub("\\", "\\\\"); + result = trim(api:execute("memcache", "set " .. call_context .. " '"..tmp:gsub("'", "'").."' "..expire["dialplan"])); --send the xml to the console if (debug["xml_string"]) then @@ -942,7 +942,6 @@ else --replace the ' back to a single quote XML_STRING = XML_STRING:gsub("'", "'"); - freeswitch.consoleLog("notice", "[xml_handler] dialplan: "..XML_STRING.."\n"); --send to the console if (debug["cache"]) then