fix(templates): escape attachment file_url and file_name in order.html and projects.html

(cherry picked from commit d9760bbf4f)
This commit is contained in:
diptanilsaha
2026-03-25 14:46:50 +05:30
committed by Mergify
parent a93d715916
commit 38bc5d69cd
2 changed files with 3 additions and 3 deletions

View File

@@ -140,7 +140,7 @@
<div class="col-sm-12">
{% for attachment in attachments %}
<p class="small">
<a href="{{ attachment.file_url }}" target="blank"> {{ attachment.file_name }} </a>
<a href="{{ attachment.file_url|e }}" target="blank"> {{ attachment.file_name|e }} </a>
</p>
{% endfor %}
</div>

View File

@@ -82,11 +82,11 @@
<div class="project-attachments">
{% for attachment in doc.attachments %}
<div class="attachment">
<a class="no-decoration attachment-link" href="{{ attachment.file_url }}" target="blank">
<a class="no-decoration attachment-link" href="{{ attachment.file_url|e }}" target="blank">
<div class="row">
<div class="col-xs-9">
<span class="indicator red file-name">
{{ attachment.file_name }}</span>
{{ attachment.file_name|e }}</span>
</div>
<div class="col-xs-3">
<span class="pull-right file-size">{{ attachment.file_size }}</span>