Skip to content

Commit

Permalink
Use rel="noopener noreferrer" for external links
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmielnik committed Apr 8, 2020
1 parent 3eb68be commit 49631a2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cv",
"version": "1.6.1",
"version": "1.6.2",
"description": "Kamil Mielnik's Curriculum Vitae",
"engines": {
"node": ">=12.4.0"
Expand Down Expand Up @@ -74,7 +74,7 @@
"http-server": "^0.12.1",
"node-sass": "^4.13.1",
"node-ssh": "^8.0.0",
"prettier": "^2.0.2",
"prettier": "^2.0.4",
"puppeteer": "^2.1.1",
"react-scripts": "^3.4.1",
"rimraf": "^3.0.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const ContactInfoEntry: FunctionComponent<Props> = ({ label, url, value }) => (
<div className={styles.label}>{label}</div>

{url && (
<a className={styles.value} href={url}>
<a className={styles.value} href={url} rel="noopener noreferrer">
{value}
</a>
)}
Expand Down
4 changes: 3 additions & 1 deletion src/components/Experience/ExperienceEntry/Info/Info.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ interface Props {
const Info: FunctionComponent<Props> = ({ className, location, organization, timePeriod, url }) => (
<div className={classNames(styles.info, className)}>
<h3 className={styles.organization}>
<a href={url}>{organization}</a>
<a href={url} rel="noopener noreferrer">
{organization}
</a>
</h3>

<div className={styles.details}>
Expand Down

0 comments on commit 49631a2

Please sign in to comment.