From cf0343c8f0dd346df6e5a23b74cc0d7957fdeb9b Mon Sep 17 00:00:00 2001 From: Scan <103391616+scanash00@users.noreply.github.com> Date: Sat, 30 Aug 2025 00:58:00 -0800 Subject: [PATCH] fix: code scanning alert no. 10: Double escaping or unescaping Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- src/services/social/SocialMediaManager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/social/SocialMediaManager.ts b/src/services/social/SocialMediaManager.ts index bbb1ed5..3542400 100644 --- a/src/services/social/SocialMediaManager.ts +++ b/src/services/social/SocialMediaManager.ts @@ -271,9 +271,9 @@ class NotificationService { return text .replace(/</g, '<') .replace(/>/g, '>') - .replace(/&/g, '&') .replace(/"/g, '"') .replace(/'/g, "'") + .replace(/&/g, '&') .replace(/[ \t]+/g, ' ') .replace(/\r\n/g, '\n') .replace(/\r/g, '\n') -- 2.51.2