Fix old xss prevention only removing first less than symbol

This commit is contained in:
Ajay
2025-07-30 01:26:02 -04:00
parent 74b9b123a8
commit 3711286ef2

View File

@@ -68,7 +68,7 @@ export async function getVideoBranding(res: Response, videoID: VideoID, service:
const casualVotes = getCasualVotes();
for (const title of await titles) {
title.title = title.title.replace("<", "");
title.title = title.title.replaceAll("<", "");
}
return {
@@ -160,7 +160,7 @@ export async function getVideoBrandingByHash(videoHashPrefix: VideoIDHash, servi
};
(await branding.titles).forEach((title) => {
title.title = title.title.replace("<", "");
title.title = title.title.replaceAll("<", "");
initResult(title);
dbResult[title.videoID].titles.push(title);