Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[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

Merged
fabpot merged 1 commit intosymfony:5.4frommRoca:fix/yaml-utf8-uid-parsing
Nov 5, 2023
Merged

[Yaml] Fix uid binary parsing#52443

fabpot merged 1 commit intosymfony:5.4frommRoca:fix/yaml-utf8-uid-parsing
Nov 5, 2023

Conversation

mRoca
Copy link
Contributor

@mRocamRoca commentedNov 3, 2023
edited
Loading

QA
Branch?5.4
Bug fix?yes
New feature?no
Deprecations?no
LicenseMIT

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 becausepreg_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).

@carsonbot
Copy link

Hey!

Thanks for your PR. You are targeting branch "5.4" but it seems your PR description refers to branch "5.4 and next".
Could you update the PR description or change target branch? This helps core maintainers a lot.

Cheers!

Carsonbot

Copy link
Member

@xabbuhxabbuh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

LGTM

@fabpot
Copy link
Member

Thank you@mRoca.

@fabpotfabpot merged commita432b12 intosymfony:5.4Nov 5, 2023
@mRocamRoca deleted the fix/yaml-utf8-uid-parsing branchNovember 6, 2023 17:04
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@fabpotfabpotfabpot approved these changes

@derrabusderrabusderrabus approved these changes

@xabbuhxabbuhxabbuh approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
5.4
Development

Successfully merging this pull request may close these issues.

5 participants
@mRoca@carsonbot@fabpot@derrabus@xabbuh

[8]ページ先頭

©2009-2025 Movatter.jp