Browse Source

[Minor] Don't double-escape lua strings in libucl

Strings are escaped during JSON/UCL output, so escaping them while
building the object results in doubly escaped strings.
tags/1.7.5
Paul Arthur 6 years ago
parent
commit
eea6b5ea92
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      contrib/libucl/lua_ucl.c

+ 2
- 2
contrib/libucl/lua_ucl.c View File

@@ -550,10 +550,10 @@ ucl_object_lua_import_escape (lua_State *L, int idx)
t = lua_type (L, idx);
switch (t) {
case LUA_TTABLE:
obj = ucl_object_lua_fromtable (L, idx, UCL_STRING_ESCAPE);
obj = ucl_object_lua_fromtable (L, idx, UCL_STRING_RAW);
break;
default:
obj = ucl_object_lua_fromelt (L, idx, UCL_STRING_ESCAPE);
obj = ucl_object_lua_fromelt (L, idx, UCL_STRING_RAW);
break;
}


Loading…
Cancel
Save