diff options
author | Lars Müller <34514239+appgurueu@users.noreply.github.com> | 2021-05-30 20:23:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-30 20:23:12 +0200 |
commit | 89f3991351185b365ccd10525e74d35d7bb2da46 (patch) | |
tree | e82a77c9f34bd9e34adfe16c6d1a1fbffd289c5f /doc | |
parent | 1bc753f655db4c7de030f2700361011e1c0278a5 (diff) | |
download | minetest-89f3991351185b365ccd10525e74d35d7bb2da46.tar.gz minetest-89f3991351185b365ccd10525e74d35d7bb2da46.tar.bz2 minetest-89f3991351185b365ccd10525e74d35d7bb2da46.zip |
Fix base64 validation and add unittests (#10515)
Implement proper padding character checks
Diffstat (limited to 'doc')
-rw-r--r-- | doc/client_lua_api.txt | 4 | ||||
-rw-r--r-- | doc/lua_api.txt | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/doc/client_lua_api.txt b/doc/client_lua_api.txt index 1e8015f7b..d239594f7 100644 --- a/doc/client_lua_api.txt +++ b/doc/client_lua_api.txt @@ -910,7 +910,9 @@ Call these functions only at load time! * Example: `minetest.rgba(10, 20, 30, 40)`, returns `"#0A141E28"` * `minetest.encode_base64(string)`: returns string encoded in base64 * Encodes a string in base64. -* `minetest.decode_base64(string)`: returns string +* `minetest.decode_base64(string)`: returns string or nil on failure + * Padding characters are only supported starting at version 5.4.0, where + 5.5.0 and newer perform proper checks. * Decodes a string encoded in base64. * `minetest.gettext(string)` : returns string * look up the translation of a string in the gettext message catalog diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 6c7ae0fb5..956919c89 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -5773,7 +5773,9 @@ Misc. * Example: `minetest.rgba(10, 20, 30, 40)`, returns `"#0A141E28"` * `minetest.encode_base64(string)`: returns string encoded in base64 * Encodes a string in base64. -* `minetest.decode_base64(string)`: returns string or nil for invalid base64 +* `minetest.decode_base64(string)`: returns string or nil on failure + * Padding characters are only supported starting at version 5.4.0, where + 5.5.0 and newer perform proper checks. * Decodes a string encoded in base64. * `minetest.is_protected(pos, name)`: returns boolean * Returning `true` restricts the player `name` from modifying (i.e. digging, |