Skip to content

Commit

Permalink
fix: filename xss (#22778)
Browse files Browse the repository at this point in the history
(cherry picked from commit 73b58a4)
  • Loading branch information
ranjit-git authored and mergify[bot] committed Oct 17, 2023
1 parent 6247aa0 commit 44df7f3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frappe/public/js/frappe/views/file/file_view.js
Original file line number Diff line number Diff line change
Expand Up @@ -384,8 +384,8 @@ frappe.views.FileView = class FileView extends frappe.views.ListView {
<input class="list-row-checkbox"
type="checkbox" data-name="${file.name}">
</span>
<span class="level-item ellipsis" title="${file.file_name}">
<a class="ellipsis" href="${route_url}" title="${file.file_name}">
<span class="level-item ellipsis" title="${frappe.utils.escape_html(file.file_name)}">
<a class="ellipsis" href="${route_url}" title="${frappe.utils.escape_html(file.file_name)}">
${file.subject_html}
</a>
</span>
Expand Down

0 comments on commit 44df7f3

Please sign in to comment.