Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.6k
[Yaml] Fix uid binary parsing#52443
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
carsonbot commentedNov 3, 2023
Hey! Thanks for your PR. You are targeting branch "5.4" but it seems your PR description refers to branch "5.4 and next". Cheers! Carsonbot |
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.
LGTM
Thank you@mRoca. |
Uh oh!
There was an error while loading.Please reload this page.
Currently, on SF 5.4 & 6.4, a YAML file containing
{ uid: !!binary Ju0Yh+uqSXOagJZFTlUt8g== }
cannot be parsed because of apreg_match
error:Malformed UTF-8 characters, possibly incorrectly encoded
.This is because
preg_match
should not be run over a binary string, but this specific binary string matches the following tests :\is_string($value) && '' !== $value && '&' === $value[0]
(the string starts with0x26
, which is the UTF-8&
char).