Skip to content

Commit 855a52f

Browse files
authored
Escape title in filterSelect function call
1 parent 755fee8 commit 855a52f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FilterAttributes/Select.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ public function __invoke(string $field, string $title): array
1111
return [
1212
'selectAttributes' => new ComponentAttributeBag([
1313
'wire:model' => 'filters.select.'.$field,
14-
'wire:input.live.debounce.600ms' => 'filterSelect(\''.$field.'\', \''.$title.'\')',
14+
'wire:input.live.debounce.600ms' => 'filterSelect(\''.$field.'\', \''.addslashes($title).'\')',
1515
]),
1616
];
1717
}

0 commit comments

Comments
 (0)