mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-10 10:22:29 +08:00
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
This commit is contained in:
parent
91c37fa235
commit
08a6053c38
@ -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");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user