fix: signin url (#5800)

pull/5803/head
zxhlyh 2 years ago committed by GitHub
parent fdfbbde10d
commit 5692f9b33b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

Loading…
Cancel
Save