feat(clean_url): trendmicro

This commit is contained in:
MDLeom 2025-09-04 12:09:25 +00:00
parent b9d9dc683e
commit c242de27ea
No known key found for this signature in database
GPG Key ID: 32D3E28E96A695E8
1 changed files with 4 additions and 3 deletions

View File

@ -18,14 +18,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'))
}