Skip to content

Commit 83c8e6e

Browse files
committed
escape merged attributes by default
1 parent 9bb98c2 commit 83c8e6e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Illuminate/View/ComponentAttributeBag.php

+4
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,10 @@ public function merge(array $attributeDefaults = [])
108108
{
109109
$attributes = [];
110110

111+
$attributeDefaults = array_map(function ($value) {
112+
return e($value);
113+
}, $attributeDefaults);
114+
111115
foreach ($this->attributes as $key => $value) {
112116
if ($value === true) {
113117
$attributes[$key] = $key;

0 commit comments

Comments
 (0)