From dfb3ec36b52ef4703a701c77e61a22b0a79c1359 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ernesto=20Garc=C3=ADa?= Date: Tue, 3 Sep 2024 11:37:09 -0600 Subject: [PATCH] Make padding skip clear in Base64URL encoding (#5176) --- contracts/utils/Base64.sol | 1 + 1 file changed, 1 insertion(+) diff --git a/contracts/utils/Base64.sol b/contracts/utils/Base64.sol index be0b7d687fb..ef9431b5578 100644 --- a/contracts/utils/Base64.sol +++ b/contracts/utils/Base64.sol @@ -23,6 +23,7 @@ library Base64 { /** * @dev Converts a `bytes` to its Bytes64Url `string` representation. + * Output is not padded with `=` as specified in https://www.rfc-editor.org/rfc/rfc4648[rfc4648]. */ function encodeURL(bytes memory data) internal pure returns (string memory) { return _encode(data, _TABLE_URL, false);