mirror of
https://github.com/kevachat/webapp.git
synced 2025-02-08 21:04:17 +00:00
apply markdown whitelist filters only to prevent ping from remote includes
This commit is contained in:
parent
f9c98deebc
commit
c16c071952
@ -34,13 +34,16 @@
|
|||||||
</svg>
|
</svg>
|
||||||
</span>
|
</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{# markdown filter enabled could deanon chat users by external image request, disabled
|
|
||||||
<br />
|
<br />
|
||||||
{{ post.message | message_to_markdown | markdown_to_html }}
|
{# apply markdown whitelist filters only to prevent ping from remote includes #}
|
||||||
#}
|
{{
|
||||||
<p>
|
post.message | trim
|
||||||
{{ post.message | trim | nl2br }}
|
| striptags
|
||||||
</p>
|
| markdown_to_html
|
||||||
|
| striptags
|
||||||
|
| message_to_markdown
|
||||||
|
| markdown_to_html
|
||||||
|
}}
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user