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

[DependencyInjection] Fix support binary values in parameters.#49651

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
nicolas-grekas merged 1 commit intosymfony:5.4fromvtsykun:fix/xml-dumper
Mar 10, 2023

Conversation

@vtsykun
Copy link
Contributor

QA
Branch?5.4
Bug fix?yes
New feature?no
Deprecations?no
TicketsFix#49638
LicenseMIT
Doc PR-

This issue related to#25928

Step to reproduce

  1. Add parameter like this
parameters:banner_message:"\e[37;44m#StandWith\e[30;43mUkraine\e[0m"
  1. Run commanddebug:router

Actual result:

Selection_1343

@carsonbotcarsonbot added this to the5.4 milestoneMar 10, 2023
@vtsykunvtsykun changed the titleFix support binary values in parameters.[DependencyInjection] Fix support binary values in parameters.Mar 10, 2023
$text =$this->document->createTextNode(self::phpToXml((string)$value));
$element->appendChild($text);
}elseif (\is_string($value) && !preg_match('/^[^\x00-\x08\x0B\x0E-\x1A\x1C-\x1F\x7F]*+$/u',$value)) {
}elseif (\is_string($value) && !preg_match('/^[^\x00-\x08\x0B\x0C\x0E-\x1F\x7F]*+$/u',$value)) {
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Only those chars is valid for XML
0x09 - tab
0x0a - \n
0x0d - \r

@nicolas-grekas
Copy link
Member

Thank you@vtsykun.

@nicolas-grekasnicolas-grekas merged commit48f806a intosymfony:5.4Mar 10, 2023
@vtsykunvtsykun deleted the fix/xml-dumper branchMarch 10, 2023 09:46
This was referencedMar 31, 2023
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

5.4

Development

Successfully merging this pull request may close these issues.

3 participants

@vtsykun@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp