Insert drag and drop file names as a text, not html

This commit is contained in:
Ribas160 2025-11-10 17:59:18 +02:00
parent 591d2d40e1
commit 14b68af528
No known key found for this signature in database
GPG key ID: ED4AE99DCA25A6BB
2 changed files with 6 additions and 3 deletions

View file

@ -3086,10 +3086,13 @@ jQuery.PrivateBin = (function($) {
* @name AttachmentViewer.printDragAndDropFileNames
* @private
* @function
* @param {array} fileNames
* @param {string[]} fileNames
*/
function printDragAndDropFileNames(fileNames) {
$dragAndDropFileNames.html(fileNames.join('<br>'));
$dragAndDropFileNames.empty();
fileNames.forEach(fileName => {
$('<div>').text(fileName).appendTo($dragAndDropFileNames);
});
}
/**