Merge pull request #8617 from mfo/US/fix-admin-links

correctif(messagerie): autorise l'usage des balises <a> dans la messagerie quand les messages viennent de l'administration
This commit is contained in:
mfo 2023-02-13 16:25:20 +01:00 committed by GitHub
commit 624c95b264
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -60,7 +60,7 @@ class Dossiers::MessageComponent < ApplicationComponent
t('.deleted_body')
else
body_formatted = commentaire.sent_by_system? ? commentaire.body : simple_format(commentaire.body)
sanitize(body_formatted)
sanitize(body_formatted, commentaire.sent_by_system? ? { scrubber: Sanitizers::MailScrubber.new } : {})
end
end