Преглед изворни кода

Improve the backslash escaping.

Mark Crane пре 12 година
родитељ
комит
0b3aa62932
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      includes/install/scripts/xml_handler.lua

+ 1 - 1
includes/install/scripts/xml_handler.lua

@@ -925,7 +925,7 @@
 				XML_STRING = table.concat(xml, "\n");
 				XML_STRING = table.concat(xml, "\n");
 
 
 			--set the cache
 			--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"]));
 				result = trim(api:execute("memcache", "set " .. call_context .. " '"..XML_STRING:gsub("'", "'").."' "..expire["dialplan"]));
 
 
 			--send the xml to the console
 			--send the xml to the console