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:
parent
529d9d1d76
commit
3bdb9ff2e2
3 changed files with 7 additions and 3 deletions
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
)
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue