Browse Source

disable markdown as unsafe for remote content without additional filters implementation

main
ghost 12 months ago
parent
commit
6603790aba
  1. 12
      templates/default/torrent/info.html.twig

12
templates/default/torrent/info.html.twig

@ -238,7 +238,9 @@
{{ 'Source' | trans }} {{ 'Source' | trans }}
</td> </td>
<td> <td>
{{ file.source | url_to_markdown | markdown_to_html }} {# disable markdown as unsafe for unfiltered content #}
{#{{ file.source | url_to_markdown | markdown_to_html }}#}
{{ file.source }}
</td> </td>
</tr> </tr>
{% endif %} {% endif %}
@ -248,7 +250,9 @@
{{ 'Software' | trans }} {{ 'Software' | trans }}
</td> </td>
<td> <td>
{{ file.software | url_to_markdown | markdown_to_html }} {# disable markdown as unsafe for unfiltered content #}
{#{{ file.software | url_to_markdown | markdown_to_html }}#}
{{ file.software }}
</td> </td>
</tr> </tr>
{% endif %} {% endif %}
@ -258,7 +262,9 @@
{{ 'Comment' | trans }} {{ 'Comment' | trans }}
</td> </td>
<td> <td>
{{ file.comment | url_to_markdown | markdown_to_html }} {# disable markdown as unsafe for unfiltered content #}
{#{{ file.comment | url_to_markdown | markdown_to_html }}#}
{{ file.comment }}
</td> </td>
</tr> </tr>
{% endif %} {% endif %}

Loading…
Cancel
Save