From 08a6053c385a935a229899e7dd392f8e0c47e8e1 Mon Sep 17 00:00:00 2001 From: Panagiotis Papadopoulos Date: Sat, 8 Mar 2025 15:27:04 +0100 Subject: [PATCH] refactor(routes/api/clipper): get rid of second htmlSanitizer call for pageUrl -> the value is already sanitized in line 112, there's no need to call htmlSanitizer a second time here --- src/routes/api/clipper.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/routes/api/clipper.ts b/src/routes/api/clipper.ts index 0b7b315aa..56f907c2c 100644 --- a/src/routes/api/clipper.ts +++ b/src/routes/api/clipper.ts @@ -123,8 +123,6 @@ function createNote(req: Request) { note.setLabel("clipType", clipType); if (pageUrl) { - pageUrl = htmlSanitizer.sanitizeUrl(pageUrl); - note.setLabel("pageUrl", pageUrl); note.setLabel("iconClass", "bx bx-globe"); }