fix: signin url (#5800)

This commit is contained in:
zxhlyh
2024-07-01 14:13:32 +08:00
committed by GitHub
parent fdfbbde10d
commit 5692f9b33b

View File

@@ -1,3 +1,5 @@
import { escape } from 'lodash-es'
export const sleep = (ms: number) => {
return new Promise(resolve => setTimeout(resolve, ms))
}
@@ -35,5 +37,5 @@ export const getPurifyHref = (href: string) => {
if (!href)
return ''
return href.replace(/javascript:/ig, '').replace(/vbscript:/ig, '').replace(/data:/ig, '')
return escape(href)
}