diff options
author | Robert Newson <rnewson@apache.org> | 2020-04-23 21:37:39 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-23 21:37:39 +0100 |
commit | db5905382c6aab8c6094d4711b711159aa3a69f8 (patch) | |
tree | af2c986f4cca23e38514fc41040767997179a4c9 | |
parent | 254fa5a55417160411c6f21b88df1a389526a665 (diff) | |
parent | 28ddd528d825bea8546fcf7cf518600c304f4836 (diff) | |
download | couchdb-db5905382c6aab8c6094d4711b711159aa3a69f8.tar.gz |
Merge pull request #2817 from apache/mango-bookmark-3.x
safer binary_to_term in mango_json_bookmark
-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}) |