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

[HtmlSanitizer] Fixforce_attributes not replacing existing attribute in initial data#58547

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

Open
tgalopin wants to merge1 commit intosymfony:6.4
base:6.4
Choose a base branch
Loading
fromtgalopin:fix/58065

Conversation

tgalopin
Copy link
Contributor

QA
Branch?6.4
Bug fix?yes
New feature?no
Deprecations?no
IssuesFix#58065
LicenseMIT

Fix the override of an existing attribute value.

dritter reacted with thumbs up emoji
Copy link
Member

@chalasrchalasr left a comment

Choose a reason for hiding this comment

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

Adding an optional argument is for 7.x

@tgalopin
Copy link
ContributorAuthor

Indeed thanks for the catch!

If that's good for you I'll handle it using func_get_args to fix the issue on 6.4 (it's a real bug, I think it's worth it)

@stof
Copy link
Member

Node is a final class, so it can add the argument directly (as there is no issue regarding keeping BC for child classes overriding the method)

tgalopin reacted with thumbs up emoji

@AppyGG
Copy link

Hi, to help on this issue, is there something to change to allow merge for 6.4 ?

@AppyGG
Copy link

Hello, small up on this PR, i really think this needs to be fix to improve sanitized content security

I'm uncertain if theNode.php class needs modification or if the changes proposed by@tgalopin are good regarding the BC policy ?

@OskarStarkOskarStark changed the title[HtmlSanitizer] Fix force_attributes not replacing existing attribute in initial data[HtmlSanitizer] Fixforce_attributes not replacing existing attribute in initial dataFeb 13, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@stofstofstof approved these changes

@chalasrchalasrAwaiting requested review from chalasr

Assignees
No one assigned
Projects
None yet
Milestone
6.4
Development

Successfully merging this pull request may close these issues.

5 participants
@tgalopin@stof@AppyGG@chalasr@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp