From d0a51e90e9cf6c2124d73260dafbcf35c455ec49 Mon Sep 17 00:00:00 2001 From: si458 Date: Mon, 18 Nov 2024 16:04:56 +0000 Subject: [PATCH] fix mobile ui file upload #6543 #6460 Signed-off-by: si458 --- views/default-mobile.handlebars | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/views/default-mobile.handlebars b/views/default-mobile.handlebars index cae138be..6c48ed6d 100644 --- a/views/default-mobile.handlebars +++ b/views/default-mobile.handlebars @@ -5895,7 +5895,7 @@ downloadFile = { path: decodeURIComponent(x), file: decodeURIComponent(y), size: z, tsize: 0, data: '', state: 0, id: Math.random() } //console.log('p13downloadFileCancel', downloadFile); files.sendText({ action: 'download', sub: 'start', id: downloadFile.id, path: downloadFile.path }); - setDialogMode(2, "Download File", 10, p13downloadFileCancel, '
' + HtmlEscape(downloadFile.file) + '

'); + setDialogMode(2, "Download File", 10, p13downloadFileCancel, '
' + EscapeHtml(downloadFile.file) + '

'); } // Called by the html page to cancel the download @@ -6043,7 +6043,7 @@ if (uploadFile.xfiles.length > uploadFile.xfilePtr) { uploadFile.xptr = 0; var file = uploadFile.xfiles[uploadFile.xfilePtr]; - QH('p13dfileName', HtmlEscape(file.name)); + QH('p13dfileName', EscapeHtml(file.name)); Q('d2progressBar').max = file.size; Q('d2progressBar').value = 0; if (file.xdata == null) {