Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: signin url (#5800)

zxhlyh5692f9b33bf1
diff --git a/web/utils/index.ts b/web/utils/index.ts
index 1fe2e82b9d8..8afd8afae70 100644
--- a/web/utils/index.ts
+++ b/web/utils/index.ts
@@ -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)
}