Skip to content

Commit dfb3ec3

Browse files
authored
Make padding skip clear in Base64URL encoding (#5176)
1 parent 9e970eb commit dfb3ec3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

contracts/utils/Base64.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ library Base64 {
2323

2424
/**
2525
* @dev Converts a `bytes` to its Bytes64Url `string` representation.
26+
* Output is not padded with `=` as specified in https://www.rfc-editor.org/rfc/rfc4648[rfc4648].
2627
*/
2728
function encodeURL(bytes memory data) internal pure returns (string memory) {
2829
return _encode(data, _TABLE_URL, false);

0 commit comments

Comments
 (0)