瀏覽代碼

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");
 
 			--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