aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2022-05-08 18:06:41 +0200
committerKim Alvefur <zash@zash.se>2022-05-08 18:06:41 +0200
commit1c6747f200505db7900204a9297b97c82c959df1 (patch)
treeb73fc162210693217cefb6c7521224988679f351 /util
parent71dc755f0f20c5dd2ad6ed76a8ae791bae16a8b1 (diff)
parentd05af9f2b54d292b49b694d8317152f4339f7076 (diff)
downloadprosody-1c6747f200505db7900204a9297b97c82c959df1.tar.gz
prosody-1c6747f200505db7900204a9297b97c82c959df1.zip
Merge 0.12->trunk
Diffstat (limited to 'util')
-rw-r--r--util/jsonpointer.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/jsonpointer.lua b/util/jsonpointer.lua
index 7c657266..dd5ac9d6 100644
--- a/util/jsonpointer.lua
+++ b/util/jsonpointer.lua
@@ -20,7 +20,7 @@ local function resolve_json_pointer(ref, path)
if token == "-" then
i = #ref + 1
end
- new_ref = ref[i]
+ new_ref = ref[i + 1]
else
return nil, "invalid-table"
end