fix mobile ui file upload #6543 #6460
Signed-off-by: si458 <simonsmith5521@gmail.com>
si458 committed
Nov 18, 2024 at 16:04 UTC
d0a51e90e9cf6c2124d73260dafbcf35c455ec49
1 file changed
+2
-2
views/default-mobile.handlebars
+2
-2
@@ -5895,7 +5895,7 @@
5895
downloadFile = { path: decodeURIComponent(x), file: decodeURIComponent(y), size: z, tsize: 0, data: '', state: 0, id: Math.random() }
5896
//console.log('p13downloadFileCancel', downloadFile);
5897
files.sendText({ action: 'download', sub: 'start', id: downloadFile.id, path: downloadFile.path });
5898
- setDialogMode(2, "Download File", 10, p13downloadFileCancel, '<div>' + HtmlEscape(downloadFile.file) + '</div><br /><progress id=d2progressBar style=width:100% value=0 max=' + z + ' />');
5898
+ setDialogMode(2, "Download File", 10, p13downloadFileCancel, '<div>' + EscapeHtml(downloadFile.file) + '</div><br /><progress id=d2progressBar style=width:100% value=0 max=' + z + ' />');
5899
}
5900
5901
// Called by the html page to cancel the download
@@ -6043,7 +6043,7 @@
6043
if (uploadFile.xfiles.length > uploadFile.xfilePtr) {
6044
uploadFile.xptr = 0;
6045
var file = uploadFile.xfiles[uploadFile.xfilePtr];
6046
- QH('p13dfileName', HtmlEscape(file.name));
6046
+ QH('p13dfileName', EscapeHtml(file.name));
6047
Q('d2progressBar').max = file.size;
6048
Q('d2progressBar').value = 0;
6049
if (file.xdata == null) {