-
-
Notifications
You must be signed in to change notification settings - Fork 34.3k
gh-145264: Do not ignore excess Base64 data after the first padded quad #145267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
0229b06
1307572
2676401
94cb78e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| Base64 decoder (see :func:`binascii.a2b_base64`, :func:`base64.b64decode`, etc) no | ||
| longer ignores excess data after the first padded quad in non-strict | ||
| (default) mode. Instead, in conformance with :rfc:`4648`, it ignores | ||
|
||
| the pad character, "=", if it is present before the end of the encoded data. | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename this from non_strict_expected to just expected.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In strict mode you get an error. You get that value only in non-strict mode, either when
strict_mode=False, or whenignorecharscontains "=".But I agree that
expectedis shorter. The old name was even longer:non_strict_mode_expected_result.