Skip to content

Commit

Permalink
fix for possible xss
Browse files Browse the repository at this point in the history
  • Loading branch information
alihm committed Apr 24, 2024
1 parent 908c43b commit 3927181
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/index.html
Original file line number Diff line number Diff line change
@@ -561,7 +561,7 @@ <h5>Active Nodes:</h5>
var filename = target.getAttribute('data-filename');
console.log(filename);
$('#confirm-modal').modal('show');
$('#confirm-modal .modal-body').html(`<span><i class="fas fa-exclamation-triangle text-danger"></i> This action is irreversible, Are you sure to delete this file?<br><b>${filename}.sql</b></span>`);
$('#confirm-modal .modal-body').html(`<span><i class="fas fa-exclamation-triangle text-danger"></i> This action is irreversible, Are you sure to delete this file?</span>`);
document.getElementById("confirm-modal").setAttribute('data-callback', 'deleteFile');
document.getElementById("confirm-modal").setAttribute('data-param', filename);

@@ -578,7 +578,7 @@ <h5>Active Nodes:</h5>
var filename = target.getAttribute('data-filename');
console.log(filename);
$('#confirm-modal').modal('show');
$('#confirm-modal .modal-body').html(`<span><i class="fas fa-exclamation-triangle text-danger"></i> This action is irreversible, Are you sure to execute this file?<br><b>${filename}.sql</b></span></br>
$('#confirm-modal .modal-body').html(`<span><i class="fas fa-exclamation-triangle text-danger"></i> This action is irreversible, Are you sure to execute the sql file?</span></br>
<div class="spinner-border" id="modal-spinner" style="width: 1rem; height: 1rem; border: 0.2em solid #000; border-right-color: transparent;" role="status">`);
document.getElementById("confirm-modal").setAttribute('data-callback', 'executeFile');
document.getElementById("confirm-modal").setAttribute('data-param', filename);

0 comments on commit 3927181

Please sign in to comment.