Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dify
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ai-tech
dify
Commits
5a004ae4
Unverified
Commit
5a004ae4
authored
Feb 02, 2024
by
Joel
Committed by
GitHub
Feb 02, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: unsafe external link (#2356)
parent
04fb610f
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
12 additions
and
12 deletions
+12
-12
activateForm.tsx
web/app/activate/activateForm.tsx
+2
-2
markdown.tsx
web/app/components/base/markdown.tsx
+1
-1
index.tsx
...onents/header/account-setting/Integrations-page/index.tsx
+1
-1
index.tsx
...components/header/account-setting/key-validator/index.tsx
+1
-1
index.tsx
...account-setting/model-provider-page/model-modal/index.tsx
+1
-1
index.tsx
...p/components/header/account-setting/plugin-page/index.tsx
+1
-1
installForm.tsx
web/app/install/installForm.tsx
+2
-2
normalForm.tsx
web/app/signin/normalForm.tsx
+2
-2
oneMoreStep.tsx
web/app/signin/oneMoreStep.tsx
+1
-1
No files found.
web/app/activate/activateForm.tsx
View file @
5a004ae4
...
@@ -100,7 +100,7 @@ const ActivateForm = () => {
...
@@ -100,7 +100,7 @@ const ActivateForm = () => {
'md:px-[108px]'
,
'md:px-[108px]'
,
)
)
}
>
}
>
{
!
checkRes
&&
<
Loading
/>
}
{
!
checkRes
&&
<
Loading
/>
}
{
checkRes
&&
!
checkRes
.
is_valid
&&
(
{
checkRes
&&
!
checkRes
.
is_valid
&&
(
<
div
className=
"flex flex-col md:w-[400px]"
>
<
div
className=
"flex flex-col md:w-[400px]"
>
<
div
className=
"w-full mx-auto"
>
<
div
className=
"w-full mx-auto"
>
...
@@ -206,7 +206,7 @@ const ActivateForm = () => {
...
@@ -206,7 +206,7 @@ const ActivateForm = () => {
<
Link
<
Link
className=
'text-primary-600'
className=
'text-primary-600'
target=
{
'_blank'
}
target=
'_blank'
rel=
'noopener noreferrer'
href=
{
`https://docs.dify.ai/${language !== LanguagesSupportedUnderscore[1] ? 'user-agreement' : `
v
/
$
{
locale
.
toLowerCase
()}
/policies`}/
open
-
source
`
}
href=
{
`https://docs.dify.ai/${language !== LanguagesSupportedUnderscore[1] ? 'user-agreement' : `
v
/
$
{
locale
.
toLowerCase
()}
/policies`}/
open
-
source
`
}
>
{
t
(
'login.license.link'
)
}
</
Link
>
>
{
t
(
'login.license.link'
)
}
</
Link
>
</
div
>
</
div
>
...
...
web/app/components/base/markdown.tsx
View file @
5a004ae4
...
@@ -144,7 +144,7 @@ export function Markdown(props: { content: string; className?: string }) {
...
@@ -144,7 +144,7 @@ export function Markdown(props: { content: string; className?: string }) {
)
)
},
},
}
}
}
}
linkTarget=
{
'_blank'
}
linkTarget=
'_blank'
>
>
{
/* Markdown detect has problem. */
}
{
/* Markdown detect has problem. */
}
{
props
.
content
}
{
props
.
content
}
...
...
web/app/components/header/account-setting/Integrations-page/index.tsx
View file @
5a004ae4
...
@@ -45,7 +45,7 @@ export default function IntegrationsPage() {
...
@@ -45,7 +45,7 @@ export default function IntegrationsPage() {
<
Link
<
Link
className=
'flex items-center h-8 px-[7px] bg-white rounded-lg border border-gray-200 text-xs font-medium text-gray-700 cursor-pointer'
className=
'flex items-center h-8 px-[7px] bg-white rounded-lg border border-gray-200 text-xs font-medium text-gray-700 cursor-pointer'
href=
{
integrate
.
link
}
href=
{
integrate
.
link
}
target=
{
'_blank'
}
>
target=
'_blank'
rel=
'noopener noreferrer'
>
{
t
(
'common.integrations.connect'
)
}
{
t
(
'common.integrations.connect'
)
}
</
Link
>
</
Link
>
)
)
...
...
web/app/components/header/account-setting/key-validator/index.tsx
View file @
5a004ae4
...
@@ -108,7 +108,7 @@ const KeyValidator = ({
...
@@ -108,7 +108,7 @@ const KeyValidator = ({
/>
/>
))
))
}
}
<
a
className=
"flex items-center text-xs cursor-pointer text-primary-600"
href=
{
keyFrom
.
link
}
target=
{
'_blank'
}
>
<
a
className=
"flex items-center text-xs cursor-pointer text-primary-600"
href=
{
keyFrom
.
link
}
target=
'_blank'
rel=
'noopener noreferrer'
>
{
keyFrom
.
text
}
{
keyFrom
.
text
}
<
LinkExternal02
className=
'w-3 h-3 ml-1 text-primary-600'
/>
<
LinkExternal02
className=
'w-3 h-3 ml-1 text-primary-600'
/>
</
a
>
</
a
>
...
...
web/app/components/header/account-setting/model-provider-page/model-modal/index.tsx
View file @
5a004ae4
...
@@ -300,7 +300,7 @@ const ModelModal: FC<ModelModalProps> = ({
...
@@ -300,7 +300,7 @@ const ModelModal: FC<ModelModalProps> = ({
{
t
(
'common.modelProvider.encrypted.front'
)
}
{
t
(
'common.modelProvider.encrypted.front'
)
}
<
a
<
a
className=
'text-primary-600 mx-1'
className=
'text-primary-600 mx-1'
target=
{
'_blank'
}
target=
'_blank'
rel=
'noopener noreferrer'
href=
'https://pycryptodome.readthedocs.io/en/latest/src/cipher/oaep.html'
href=
'https://pycryptodome.readthedocs.io/en/latest/src/cipher/oaep.html'
>
>
PKCS1_OAEP
PKCS1_OAEP
...
...
web/app/components/header/account-setting/plugin-page/index.tsx
View file @
5a004ae4
...
@@ -24,7 +24,7 @@ const PluginPage = () => {
...
@@ -24,7 +24,7 @@ const PluginPage = () => {
{
t
(
'common.provider.encrypted.front'
)
}
{
t
(
'common.provider.encrypted.front'
)
}
<
Link
<
Link
className=
'text-primary-600 mx-1'
className=
'text-primary-600 mx-1'
target=
{
'_blank'
}
target=
'_blank'
rel=
'noopener noreferrer'
href=
'https://pycryptodome.readthedocs.io/en/latest/src/cipher/oaep.html'
href=
'https://pycryptodome.readthedocs.io/en/latest/src/cipher/oaep.html'
>
>
PKCS1_OAEP
PKCS1_OAEP
...
...
web/app/install/installForm.tsx
View file @
5a004ae4
...
@@ -172,10 +172,10 @@ const InstallForm = () => {
...
@@ -172,10 +172,10 @@ const InstallForm = () => {
</
form
>
</
form
>
<
div
className=
"block w-hull mt-2 text-xs text-gray-600"
>
<
div
className=
"block w-hull mt-2 text-xs text-gray-600"
>
{
t
(
'login.license.tip'
)
}
{
t
(
'login.license.tip'
)
}
<
Link
<
Link
className=
'text-primary-600'
className=
'text-primary-600'
target=
{
'_blank'
}
target=
'_blank'
rel=
'noopener noreferrer'
href=
{
'https://docs.dify.ai/user-agreement/open-source'
}
href=
{
'https://docs.dify.ai/user-agreement/open-source'
}
>
{
t
(
'login.license.link'
)
}
</
Link
>
>
{
t
(
'login.license.link'
)
}
</
Link
>
</
div
>
</
div
>
...
...
web/app/signin/normalForm.tsx
View file @
5a004ae4
...
@@ -282,13 +282,13 @@ const NormalForm = () => {
...
@@ -282,13 +282,13 @@ const NormalForm = () => {
<
Link
<
Link
className=
'text-primary-600'
className=
'text-primary-600'
target=
{
'_blank'
}
target=
'_blank'
rel=
'noopener noreferrer'
href=
{
language
!==
LanguagesSupportedUnderscore
[
1
]
?
'https://docs.dify.ai/user-agreement/terms-of-service'
:
'https://docs.dify.ai/v/zh-hans/user-agreement/terms-of-service'
}
href=
{
language
!==
LanguagesSupportedUnderscore
[
1
]
?
'https://docs.dify.ai/user-agreement/terms-of-service'
:
'https://docs.dify.ai/v/zh-hans/user-agreement/terms-of-service'
}
>
{
t
(
'login.tos'
)
}
</
Link
>
>
{
t
(
'login.tos'
)
}
</
Link
>
&
&
<
Link
<
Link
className=
'text-primary-600'
className=
'text-primary-600'
target=
{
'_blank'
}
target=
'_blank'
rel=
'noopener noreferrer'
href=
{
language
!==
LanguagesSupportedUnderscore
[
1
]
?
'https://docs.dify.ai/user-agreement/privacy-policy'
:
'https://docs.dify.ai/v/zh-hans/user-agreement/privacy-policy'
}
href=
{
language
!==
LanguagesSupportedUnderscore
[
1
]
?
'https://docs.dify.ai/user-agreement/privacy-policy'
:
'https://docs.dify.ai/v/zh-hans/user-agreement/privacy-policy'
}
>
{
t
(
'login.pp'
)
}
</
Link
>
>
{
t
(
'login.pp'
)
}
</
Link
>
</
div
>
</
div
>
...
...
web/app/signin/oneMoreStep.tsx
View file @
5a004ae4
...
@@ -160,7 +160,7 @@ const OneMoreStep = () => {
...
@@ -160,7 +160,7 @@ const OneMoreStep = () => {
<
Link
<
Link
className=
'text-primary-600'
className=
'text-primary-600'
target=
{
'_blank'
}
target=
'_blank'
rel=
'noopener noreferrer'
href=
{
'https://docs.dify.ai/user-agreement/open-source'
}
href=
{
'https://docs.dify.ai/user-agreement/open-source'
}
>
{
t
(
'login.license.link'
)
}
</
Link
>
>
{
t
(
'login.license.link'
)
}
</
Link
>
</
div
>
</
div
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment