Skip to content

Commit

Permalink
fix: properly escape attribution text
Browse files Browse the repository at this point in the history
  • Loading branch information
JaZo committed Dec 13, 2023
1 parent e8df58a commit e3d0acc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FilamentBackgroundsPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ protected function getCssVariables(): array

return array_filter([
'filament-backgrounds-image' => new HtmlString($image->image),
'filament-backgrounds-attribution' => $this->showAttribution && $image->attribution ? new HtmlString('"' . e($image->attribution) . '"') : null,
'filament-backgrounds-attribution' => $this->showAttribution && $image->attribution ? new HtmlString('"' . addslashes($image->attribution) . '"') : null,
'filament-backgrounds-attribution-backdrop' => $this->showAttribution && $image->attribution ? new HtmlString('""') : null,
]);
}
Expand Down

0 comments on commit e3d0acc

Please sign in to comment.