Fixed issue for special characters in attachements

This commit is contained in:
Valmik Jangla 2016-04-08 00:44:40 -07:00
parent c9994b62d0
commit eb689d467a

2
frappe/public/js/frappe/form/footer/timeline_item.html Normal file → Executable file
View file

@ -124,7 +124,7 @@
<div style="margin: 10px 0px">
{% $.each(data.attachments, function(i, a) { %}
<div class="text-ellipsis">
<a href="{%= a.file_url.replace(/#/g, \'%23\') %}" class="text-muted small" target="_blank">
<a href="{%= encodeURI(a.file_url).replace(/#/g, \'%23\') %}" class="text-muted small" target="_blank">
<i class="icon-paperclip"></i>
{%= a.file_url.split("/").slice(-1)[0] %}
{% if (a.is_private) { %}