mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-11 08:29:00 +08:00
fix: signin url (#5800)
This commit is contained in:
parent
fdfbbde10d
commit
5692f9b33b
@ -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…
x
Reference in New Issue
Block a user