Skip to content

Commit

Permalink
Make padding skip clear in Base64URL encoding (#5176)
Browse files Browse the repository at this point in the history
  • Loading branch information
ernestognw authored Sep 3, 2024
1 parent 9e970eb commit dfb3ec3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions contracts/utils/Base64.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit dfb3ec3

Please sign in to comment.