[SECURITY] Add warning for download of unsafe files

This commit is contained in:
Raphael Michel
2017-08-21 14:30:58 +02:00
parent e7d6265b22
commit 28e146f2ad
@@ -215,6 +215,10 @@
<a href="{{ q.answer.backend_file_url }}?token={% answer_token request q.answer %}">
{{ q.answer.file_name }}
</a>
<span class="label label-danger" data-toggle="tooltip"
title="{% trans "This file has been uploaded by a user and could contain viruses or other malicious content." %}">
{% trans "UNSAFE" %}
</span>
{% else %}
{{ q.answer|linebreaksbr }}
{% endif %}