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 ? (
|
{website ? (
|
||||||
<div className='mt-2'>
|
<div className='mt-2'>
|
||||||
Visit {name.nickname ? name.nickname : name.first} at:{' '}
|
Visit {name.nickname ? name.nickname : name.first} at:{' '}
|
||||||
<a href={website} target='_blank'>
|
<a href={website} target='_blank' rel='noopener noreferrer'>
|
||||||
{website}
|
{website}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -103,7 +103,7 @@ const ReviewerDisplay = ({ r }: Readonly<{ r: reviewer }>) => {
|
||||||
}
|
}
|
||||||
if (r.url) {
|
if (r.url) {
|
||||||
return (
|
return (
|
||||||
<a href={r.url} target='_blank'>
|
<a href={r.url} target='_blank' rel='noopener noreferrer'>
|
||||||
{r.first} {r.last}
|
{r.first} {r.last}
|
||||||
</a>
|
</a>
|
||||||
)
|
)
|
||||||
|
|
|
@ -93,7 +93,11 @@ const DocumentViewer = ({ slug }: Readonly<{ slug: string }>) => {
|
||||||
{doi && (
|
{doi && (
|
||||||
<p className='my-2'>
|
<p className='my-2'>
|
||||||
<span className='font-bold'>DOI: </span>
|
<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}
|
{doi}
|
||||||
</a>
|
</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
Loading…
Reference in a new issue