fix: download link with empty value, otherwise it could be used to name the file

This commit is contained in:
Colin Darie 2022-10-10 19:04:57 +02:00
parent df672fb493
commit 03de58c7e2
2 changed files with 2 additions and 2 deletions

View file

@ -2,7 +2,7 @@
- if template&.attached?
%p.mb-1
Veuillez télécharger, remplir et joindre
= link_to(url_for(template), download: true, class: "fr-link fr-link--icon-right fr-icon-download-line") do
= link_to(url_for(template), download: "", class: "fr-link fr-link--icon-right fr-icon-download-line") do
le modèle suivant
- if helpers.administrateur_signed_in?

View file

@ -23,7 +23,7 @@
- if notice_url(dossier.procedure).present?
.fr-download
%p
= link_to notice_url(dossier.procedure), download: true, class: "fr-download__link mr-2", title: t("views.shared.dossiers.edit.notice_title") do
= link_to notice_url(dossier.procedure), download: "", class: "fr-download__link mr-2", title: t("views.shared.dossiers.edit.notice_title") do
= t("views.shared.dossiers.edit.notice")
- if dossier.procedure.notice.attached?
%span.fr-download__detail