Skip to content

Commit eb54251

Browse files
Potential fix for code scanning alert no. 23: DOM text reinterpreted as HTML
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 8538c0b commit eb54251

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

phpmyfaq/admin/assets/src/content/attachment-upload.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export const handleAttachmentUploads = (): void => {
4949
output = approx.toFixed(2) + ' ' + multiples[multiple] + ' (' + bytes + ' bytes)';
5050
}
5151

52-
fileSize.innerHTML = output;
52+
fileSize.textContent = output;
5353
fileList.append(addElement('ul', { className: 'mt-2' }, fileItems));
5454
});
5555

@@ -108,7 +108,7 @@ export const handleAttachmentUploads = (): void => {
108108
);
109109
});
110110

111-
fileSize.innerHTML = '';
111+
fileSize.textContent = '';
112112
fileList.forEach((li: Element): void => {
113113
li.remove();
114114
});

0 commit comments

Comments
 (0)