From 2f4dbff90df52bacc5696fdafa7e8c6cbca1602a Mon Sep 17 00:00:00 2001 From: ghost Date: Fri, 8 Dec 2023 20:18:28 +0200 Subject: [PATCH] add trim filters --- templates/default/torrent/info.html.twig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/default/torrent/info.html.twig b/templates/default/torrent/info.html.twig index 2877ae7..87dcdb1 100644 --- a/templates/default/torrent/info.html.twig +++ b/templates/default/torrent/info.html.twig @@ -239,7 +239,7 @@ {# strip all tags then apply whitelist markdown filters to prevent ping from remote #} - {{ file.source | striptags | markdown_to_html | striptags | url_to_markdown | markdown_to_html }} + {{ file.source | trim | striptags | markdown_to_html | striptags | url_to_markdown | markdown_to_html }} {% endif %} @@ -250,7 +250,7 @@ {# strip all tags then apply whitelist markdown filters to prevent ping from remote #} - {{ file.software | striptags | markdown_to_html | striptags | url_to_markdown | markdown_to_html }} + {{ file.software | trim | striptags | markdown_to_html | striptags | url_to_markdown | markdown_to_html }} {% endif %} @@ -261,7 +261,7 @@ {# strip all tags then apply whitelist markdown filters to prevent ping from remote #} - {{ file.comment | striptags | markdown_to_html | striptags | url_to_markdown | markdown_to_html }} + {{ file.comment | trim | striptags | markdown_to_html | striptags | url_to_markdown | markdown_to_html }} {% endif %}