diff --git a/Web/Presenters/templates/Audio/Upload.xml b/Web/Presenters/templates/Audio/Upload.xml index 8433ea6e..7be039d9 100644 --- a/Web/Presenters/templates/Audio/Upload.xml +++ b/Web/Presenters/templates/Audio/Upload.xml @@ -164,11 +164,11 @@ ${tr('performer')}: - + ${tr('audio_name')}: - + ${tr('genre')}: @@ -178,7 +178,7 @@ ${tr('lyrics')}: - + diff --git a/Web/static/js/al_music.js b/Web/static/js/al_music.js index 8b4b0a82..d9029763 100644 --- a/Web/static/js/al_music.js +++ b/Web/static/js/al_music.js @@ -1306,12 +1306,12 @@ u(document).on("click", ".musicIcon.edit-icon", (e) => { MessageBox(tr("edit_audio"), `
${tr("performer")} - +
${tr("audio_name")} - +
@@ -1359,7 +1359,7 @@ u(document).on("click", ".musicIcon.edit-icon", (e) => { e.target.setAttribute("data-performer", escapeHtml(response.new_info.performer)) e.target.setAttribute("data-title", escapeHtml(response.new_info.name)) - e.target.setAttribute("data-lyrics", response.new_info.lyrics_unformatted) + e.target.setAttribute("data-lyrics", escapeHtml(response.new_info.lyrics_unformatted)) e.target.setAttribute("data-explicit", Number(response.new_info.explicit)) e.target.setAttribute("data-searchable", Number(!response.new_info.unlisted)) player.setAttribute("data-genre", response.new_info.genre) @@ -1374,7 +1374,7 @@ u(document).on("click", ".musicIcon.edit-icon", (e) => { } else { player.insertAdjacentHTML("beforeend", `
- ${response.new_info.lyrics} + ${escapeHtml(response.new_info.lyrics)}
`) diff --git a/Web/static/js/al_wall.js b/Web/static/js/al_wall.js index 95aeebeb..06420ceb 100644 --- a/Web/static/js/al_wall.js +++ b/Web/static/js/al_wall.js @@ -2579,7 +2579,7 @@ async function changeStatus() { document.querySelector("#page_status_text").innerHTML = `[ ${tr("change_status")} ]`; document.querySelector("#page_status_text").className = "edit_link page_status_edit_button"; } else { - document.querySelector("#page_status_text").innerHTML = status; + document.querySelector("#page_status_text").innerHTML = escapeHtml(status); document.querySelector("#page_status_text").className = "page_status page_status_edit_button"; } diff --git a/Web/static/js/router.js b/Web/static/js/router.js index d72249c5..8ef87123 100644 --- a/Web/static/js/router.js +++ b/Web/static/js/router.js @@ -234,6 +234,10 @@ window.router = new class { } u(document).on('click', 'a', async (e) => { + if(e.defaultPrevented) { + return + } + const target = u(e.target).closest('a') const dom_url = target.attr('href') const id = target.attr('id') @@ -289,6 +293,10 @@ u(document).on('click', 'a', async (e) => { }) u(document).on('submit', 'form', async (e) => { + if(e.defaultPrevented) { + return + } + if(u('#ajloader').hasClass('shown')) { e.preventDefault() return