mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-02 06:29:54 +00:00
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:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user