diff options
author | Robert Newson <rnewson@apache.org> | 2020-04-23 20:43:59 +0100 |
---|---|---|
committer | Robert Newson <rnewson@apache.org> | 2020-04-23 20:43:59 +0100 |
commit | 28ddd528d825bea8546fcf7cf518600c304f4836 (patch) | |
tree | af2c986f4cca23e38514fc41040767997179a4c9 | |
parent | 254fa5a55417160411c6f21b88df1a389526a665 (diff) | |
download | couchdb-28ddd528d825bea8546fcf7cf518600c304f4836.tar.gz |
safer binary_to_term in mango_json_bookmarkmango-bookmark-3.x
-rw-r--r-- | src/mango/src/mango_json_bookmark.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mango/src/mango_json_bookmark.erl b/src/mango/src/mango_json_bookmark.erl index 97f81cfb8..83fd00f29 100644 --- a/src/mango/src/mango_json_bookmark.erl +++ b/src/mango/src/mango_json_bookmark.erl @@ -54,7 +54,7 @@ unpack(nil) -> nil; unpack(Packed) -> try - Bookmark = binary_to_term(couch_util:decodeBase64Url(Packed)), + Bookmark = binary_to_term(couch_util:decodeBase64Url(Packed), [safe]), verify(Bookmark) catch _:_ -> ?MANGO_ERROR({invalid_bookmark, Packed}) |