fix: escape characters when showing page title

This commit is contained in:
sebastiencarceles 2022-11-24 14:04:33 +01:00 committed by Sébastien Carceles
parent 12d070fc83
commit c294ce70ca
2 changed files with 4 additions and 2 deletions

View file

@ -7,7 +7,7 @@
= csrf_meta_tags
%title
= content_for?(:title) ? "#{yield(:title)} · #{APPLICATION_NAME}" : APPLICATION_NAME
= content_for?(:title) ? "#{sanitize(yield(:title))} · #{APPLICATION_NAME}" : APPLICATION_NAME
= favicon_link_tag(image_url("#{FAVICON_16PX_SRC}"), type: "image/png", sizes: "16x16")
= favicon_link_tag(image_url("#{FAVICON_32PX_SRC}"), type: "image/png", sizes: "32x32")