Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: let decode look for additional base32 padding
Update FromString and XID.TextUnmarshal so that it looks for discarded bits in the final source character. This fixes an issue where XIDs that have been manually tampered with in a way that's ignored by base32 decode, will not pass as valid.
- Loading branch information
Showing
1 changed file
with
18 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters