feat(clean_url): trendmicro

This commit is contained in:
MDLeom 2025-09-09 08:10:39 +00:00
parent 8dba535c91
commit d42792a433
No known key found for this signature in database
GPG Key ID: 32D3E28E96A695E8
1 changed files with 4 additions and 3 deletions

View File

@ -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'))
}