Skip to content

Commit

Permalink
Specify noopener for potentially unsafe links
Browse files Browse the repository at this point in the history
  • Loading branch information
admdly authored Feb 20, 2025
1 parent d38f7ea commit 9971195
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/ContributedBy/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ export function ContributedBy({ username, pullRequestNumber }) {
return (
<div className="flex float-right items-center p-2 ms-4 mb-4 mt-6 w-56 bg-gray-100 dark:bg-neutral-800 text-gray-600 dark:text-gray-400 rounded-md">
<div className="inline-block">
<a href={userLink} target="_blank">
<a href={userLink} target="_blank" rel="noopener">
<img className="rounded-md h-10 w-10" src={avatarLink} alt={username}/>
</a>
</div>
<div className="flex ml-3">
<p className="text-xs">
Contributed by <br /><a className="text-blue-400 hover:text-blue-500 hover:underline" href={userLink} target="_blank">{username}</a> in <a className="text-blue-400 hover:text-blue-500 hover:underline" href={pullRequestLink} target="_blank">#{pullRequestNumber}</a>.
Contributed by <br /><a className="text-blue-400 hover:text-blue-500 hover:underline" href={userLink} target="_blank" rel="noopener">{username}</a> in <a className="text-blue-400 hover:text-blue-500 hover:underline" href={pullRequestLink} target="_blank" rel="noopener">#{pullRequestNumber}</a>.
</p>
</div>
</div>
);
}
}

0 comments on commit 9971195

Please sign in to comment.