From 215fa038e3afa479968bba8cb04d1967ed3ec191 Mon Sep 17 00:00:00 2001 From: Anguel Date: Sun, 3 May 2026 17:09:04 +0100 Subject: [PATCH] Potential fix for code scanning alert no. 3: Double escaping or unescaping Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- app_vue3/src/stores/gallery.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app_vue3/src/stores/gallery.ts b/app_vue3/src/stores/gallery.ts index 5008fbf..537c155 100644 --- a/app_vue3/src/stores/gallery.ts +++ b/app_vue3/src/stores/gallery.ts @@ -239,13 +239,13 @@ export const useGalleryStore = defineStore('gallery', { // Decode HTML entities in title (Reddit API returns encoded text) if (data.title) { data.title = data.title - .replace(/&/g, '&') .replace(/</g, '<') .replace(/>/g, '>') .replace(/"/g, '"') .replace(/'/g, "'") .replace(/'/g, "'") .replace(///g, '/') + .replace(/&/g, '&') } // Album / Gallery if (data.is_gallery && data.media_metadata) {