Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix off-by one when escaping control char in JSON

  • Loading branch information...
commit 51d3bebbfd0a9720247d5209f801ab5f3e78eb23 1 parent ed623a2
Joni Freeman authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  core/json/src/main/scala/net/liftweb/json/JsonAST.scala
2  core/json/src/main/scala/net/liftweb/json/JsonAST.scala
View
@@ -427,7 +427,7 @@ object JsonAST {
case '\n' => "\\n"
case '\r' => "\\r"
case '\t' => "\\t"
- case c if ((c >= '\u0000' && c < '\u001f') || (c >= '\u0080' && c < '\u00a0') || (c >= '\u2000' && c < '\u2100')) => "\\u%04x".format(c: Int)
+ case c if ((c >= '\u0000' && c < '\u0020') || (c >= '\u0080' && c < '\u00a0') || (c >= '\u2000' && c < '\u2100')) => "\\u%04x".format(c: Int)
case c => c
})
}
Please sign in to comment.
Something went wrong with that request. Please try again.