-
Notifications
You must be signed in to change notification settings - Fork 11.3k
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
[7.x] Escape attributes automatically in some situations #31945
Conversation
@@ -165,15 +176,15 @@ protected function componentString(string $component, array $attributes) | |||
if (! class_exists($class)) { | |||
$parameters = [ | |||
'view' => "'$class'", | |||
'data' => '['.$this->attributesToString($data->all()).']', | |||
'data' => '['.$this->attributesToString($data->all(), $escapeBound = false).']', |
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.
This is currently not covered by any test (Changing to $escapeBound = true
doesn't cause any tests to fail).
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.
Here is an attempt to cover this in testClasslessComponents()
: perifer@46176c6
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.
Thanks
@perifer @taylorotwell @GrahamCampbell is there any way to disable this sanitizing if I do want to pass in a class with a |
No description provided.