[SECURITY] Add warning for download of unsafe files

This commit is contained in:
Raphael Michel
2017-08-20 17:01:31 +02:00
parent 1a42a54d98
commit e23a5c24d6

View File

@@ -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 %}