fix: unsafe external link (#2356)

This commit is contained in:
Joel
2024-02-02 15:42:42 +08:00
committed by GitHub
parent 04fb610fe7
commit 5a004ae429
9 changed files with 12 additions and 12 deletions

View File

@ -45,7 +45,7 @@ export default function IntegrationsPage() {
<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'
href={integrate.link}
target={'_blank'}>
target='_blank' rel='noopener noreferrer'>
{t('common.integrations.connect')}
</Link>
)

View File

@ -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}
<LinkExternal02 className='w-3 h-3 ml-1 text-primary-600' />
</a>

View File

@ -300,7 +300,7 @@ const ModelModal: FC<ModelModalProps> = ({
{t('common.modelProvider.encrypted.front')}
<a
className='text-primary-600 mx-1'
target={'_blank'}
target='_blank' rel='noopener noreferrer'
href='https://pycryptodome.readthedocs.io/en/latest/src/cipher/oaep.html'
>
PKCS1_OAEP

View File

@ -24,7 +24,7 @@ const PluginPage = () => {
{t('common.provider.encrypted.front')}
<Link
className='text-primary-600 mx-1'
target={'_blank'}
target='_blank' rel='noopener noreferrer'
href='https://pycryptodome.readthedocs.io/en/latest/src/cipher/oaep.html'
>
PKCS1_OAEP