aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/lua/json_cr_escaping.patch
blob: 3f0ac0c231eb56e4e7586a8552b2a4ddaff1324a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
Index: common/json.lua
===================================================================
--- common/json.lua	(revision 1131457)
+++ common/json.lua	(working copy)
@@ -333,6 +333,7 @@
   s = string.gsub(s,'\\','\\\\')
   s = string.gsub(s,'"','\\"')
   s = string.gsub(s,"'","\\'")
+  s = string.gsub(s,'\r','\\r')
   s = string.gsub(s,'\n','\\n')
   s = string.gsub(s,'\t','\\t')
   return s