mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2026-03-31 17:15:38 +00:00
allow markdown from whitelist only
This commit is contained in:
parent
9d596de610
commit
3c6b1d6ab7
1 changed files with 6 additions and 9 deletions
|
|
@ -238,9 +238,8 @@
|
|||
{{ 'Source' | trans }}
|
||||
</td>
|
||||
<td>
|
||||
{# disable markdown as unsafe for unfiltered content #}
|
||||
{#{{ file.source | url_to_markdown | markdown_to_html }}#}
|
||||
{{ file.source }}
|
||||
{# 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 }}
|
||||
</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
|
|
@ -250,9 +249,8 @@
|
|||
{{ 'Software' | trans }}
|
||||
</td>
|
||||
<td>
|
||||
{# disable markdown as unsafe for unfiltered content #}
|
||||
{#{{ file.software | url_to_markdown | markdown_to_html }}#}
|
||||
{{ file.software }}
|
||||
{# 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 }}
|
||||
</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
|
|
@ -262,9 +260,8 @@
|
|||
{{ 'Comment' | trans }}
|
||||
</td>
|
||||
<td>
|
||||
{# disable markdown as unsafe for unfiltered content #}
|
||||
{#{{ file.comment | url_to_markdown | markdown_to_html }}#}
|
||||
{{ file.comment }}
|
||||
{# 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 }}
|
||||
</td>
|
||||
</tr>
|
||||
{% endif %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue