diff --git a/script.js b/script.js index ae969db..86ff213 100644 --- a/script.js +++ b/script.js @@ -3896,7 +3896,7 @@ function cancelEdit() { function openImage(url) { const baseURL = url.split('?')[0]; - const fileName = baseURL.split('/').pop(); + const fileName = escapeHTML(baseURL.split('/').pop()); document.documentElement.style.overflow = "hidden"; const mdlbck = document.querySelector('.image-back'); @@ -3907,16 +3907,18 @@ function openImage(url) { const mdl = mdlbck.querySelector('.image-mdl'); if (mdl) { mdl.innerHTML = ` - ${fileName} + ${fileName} `; } } } +// making ai do this i literally cant be bothered + function preventClose(event) { event.stopPropagation(); }