瀏覽代碼

[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 年之前
父節點
當前提交
eea6b5ea92
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      contrib/libucl/lua_ucl.c

+ 2
- 2
contrib/libucl/lua_ucl.c 查看文件

@@ -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…
取消
儲存