From d42792a433fc1fdd8428aa356b14f7d418d6a85f Mon Sep 17 00:00:00 2001 From: MDLeom <2809763-curben@users.noreply.gitlab.com> Date: Tue, 9 Sep 2025 08:10:39 +0000 Subject: [PATCH] feat(clean_url): trendmicro --- src/clean_url.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/clean_url.js b/src/clean_url.js index 748a0001..41bde8a7 100644 --- a/src/clean_url.js +++ b/src/clean_url.js @@ -25,14 +25,15 @@ const caretPath = (pathname) => { const safeLinks = [ 'safelinks\\.protection\\.outlook\\.com', '\\.protection\\.sophos\\.com', - 'linkprotect\\.cudasvc\\.com' + 'linkprotect\\.cudasvc\\.com', + 'ctp\\.trendmicro\\.com' ] const deSafelink = (urlStr) => { let url = new URL(urlStr) - // O365 Safelinks - if (url.hostname.endsWith('safelinks.protection.outlook.com')) { + // O365 Safelinks & Trendmicro + if (url.hostname.endsWith('safelinks.protection.outlook.com') || url.hostname.endsWith('ctp.trendmicro.com')) { url = new URL(url.searchParams.get('url')) }