-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
[HtmlSanitizer] Fix force_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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
chalasr
left a comment
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.
Adding an optional argument is for 7.x
|
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) |
|
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) |
|
Hi, to help on this issue, is there something to change to allow merge for 6.4 ? |
|
Hello, small up on this PR, i really think this needs to be fix to improve sanitized content security I'm uncertain if the |
force_attributes not replacing existing attribute in initial data
|
Thank you @tgalopin. |
Fix the override of an existing attribute value.