fix(security): potentially unsafe external links (#51)

* fix(security): potentially unsafe external links

* style: format

---------

Co-authored-by: quantum9Innovation <quantum9Innovation@users.noreply.github.com>
This commit is contained in:
Ananth Venkatesh 2024-03-07 09:47:55 -08:00 committed by GitHub
parent 529d9d1d76
commit 3bdb9ff2e2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 3 deletions

View file

@ -27,7 +27,7 @@ const MainAuthorPosition = ({ author }: { author: Author }) => {
{website ? (
<div className='mt-2'>
Visit {name.nickname ? name.nickname : name.first} at:{' '}
<a href={website} target='_blank'>
<a href={website} target='_blank' rel='noopener noreferrer'>
{website}
</a>
</div>

View file

@ -103,7 +103,7 @@ const ReviewerDisplay = ({ r }: Readonly<{ r: reviewer }>) => {
}
if (r.url) {
return (
<a href={r.url} target='_blank'>
<a href={r.url} target='_blank' rel='noopener noreferrer'>
{r.first} {r.last}
</a>
)

View file

@ -93,7 +93,11 @@ const DocumentViewer = ({ slug }: Readonly<{ slug: string }>) => {
{doi && (
<p className='my-2'>
<span className='font-bold'>DOI: </span>
<a href={`https://doi.org/${doi}`} target='_blank'>
<a
href={`https://doi.org/${doi}`}
target='_blank'
rel='noopener noreferrer'
>
{doi}
</a>
</p>