diff --git a/app/core/src/main/resources/static/js/githubVersion.js b/app/core/src/main/resources/static/js/githubVersion.js index a6b8c8a7e..2788d7c28 100644 --- a/app/core/src/main/resources/static/js/githubVersion.js +++ b/app/core/src/main/resources/static/js/githubVersion.js @@ -205,6 +205,18 @@ async function showUpdateModal() { const updateBtn = document.getElementById("update-btn"); const summaryData = JSON.parse(updateBtn.getAttribute('data-update-summary')); + // Utility function to escape HTML special characters + function escapeHtml(str) { + if (typeof str !== 'string') return str; + return str + .replace(/&/g, '&') + .replace(//g, '>') + .replace(/"/g, '"') + .replace(/'/g, ''') + .replace(/\//g, '/'); + } + // Create initial modal with loading state const initialModalHtml = `
@@ -254,9 +266,9 @@ async function showUpdateModal() { ${summaryData.migration_guides.map(guide => `