diff --git a/frontend/menu.html b/frontend/menu.html index 604299b..1eee5e3 100644 --- a/frontend/menu.html +++ b/frontend/menu.html @@ -483,6 +483,15 @@ const filesTBody = document.getElementById('filesTBody'); let DIRS = []; + function escapeHtml(text) { + return String(text) + .replace(/&/g, "&") + .replace(//g, ">") + .replace(/"/g, """) + .replace(/'/g, "'"); + } + function humanSize(bytes){ if (!bytes) return '0 B'; const k = 1024, sizes = ['B','KB','MB','GB','TB']; @@ -509,7 +518,7 @@ const modified = `${fmtDayMonthForFiles(dir.modified)}`; return `