Skip to content

Commit

Permalink
Merge commit from fork
Browse files Browse the repository at this point in the history
(security) XSS Vulnerabilities in Admin Settings Panel
  • Loading branch information
yogeshojha authored Feb 4, 2025
2 parents 911196d + 635890d commit b77d1e0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions web/dashboard/templates/dashboard/admin.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ <h4>Users</h4>
</th>
<th>
{% if muser.get_full_name %}
{{muser.get_full_name}}
{{muser.get_full_name|escape}}
{% else %}
{{muser.username}}
{{muser.username|escape}}
{% endif %}
</th>
<th>
Expand Down Expand Up @@ -128,7 +128,7 @@ <h4>Users</h4>
function delete_user(id, username) {
const delAPI = "./update?mode=delete&user=" + id;
swal.queue([{
title: 'Are you sure you want to delete user '+ username +'?',
title: 'Are you sure you want to delete user '+ htmlEncode(username) +'?',
text: "You won't be able to revert this!",
type: 'warning',
showCancelButton: true,
Expand Down Expand Up @@ -313,7 +313,7 @@ <h4>Users</h4>
Swal.fire({
title: "Oops! Can't create user!",
icon: 'error',
text: 'Error: ' + data.error,
text: 'Error: ' + htmlEncode(data.error),
})
}

Expand Down

0 comments on commit b77d1e0

Please sign in to comment.