Skip to content

Commit

Permalink
Merge pull request #236 from camptocamp/force_attachment_download
Browse files Browse the repository at this point in the history
fix: security - force attachment download
  • Loading branch information
tonio authored Dec 17, 2021
2 parents 0e5c7df + b4452ff commit 42d2bb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c2cgeoform/templates/widgets/readonly/file_upload.pt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<p id="${oid|field.oid}" class="form-control-static deform-readonly-text">
<a href="${url}" tal:omit-tag="not:url" tal:content="cstruct.get('filename') or ''"></a>
<a href="${url}" download="${cstruct.get('filename') or ''}" tal:omit-tag="not:url" tal:content="cstruct.get('filename') or ''"></a>
</p>

0 comments on commit 42d2bb9

Please sign in to comment.