فهرست منبع

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