Skip to content

Commit

Permalink
fix: security - force attachment download
Browse files Browse the repository at this point in the history
  • Loading branch information
tonio committed Dec 17, 2021
1 parent 0e5c7df commit b4452ff
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 b4452ff

Please sign in to comment.