Skip to content

Commit

Permalink
fix: Using target=_blank without rel=noreferrer (which implies rel=no…
Browse files Browse the repository at this point in the history
…opener) is a security risk in older browsers (eesast#2117)
  • Loading branch information
zzdhybthu authored Dec 7, 2024
1 parent 65cc6f5 commit efffb8a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Development: https://api-dev.eesast.com
# Development with localhost: http://localhost:28888
REACT_APP_API_URL=https://api.eesast.com
REACT_APP_API_DEV_URL=http://localhost:28888
REACT_APP_API_DEV_URL=https://api-dev.eesast.com

# Static resources like pictures in COS
REACT_APP_STATIC_URL=https://static.eesast.com
Expand Down
6 changes: 5 additions & 1 deletion src/app/ContestSite/IntroPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,11 @@ const IntroPage: React.FC<ContestProps> = ({ mode, user }) => {
<p style={{ color: isPastEvent ? "grey" : "inherit" }}>
{index === contestTimes.length - 1
? contestTime.description && (
<a href={contestTime.description} target="_blank">
<a
href={contestTime.description}
target="_blank"
rel="noreferrer"
>
{contestTime.description}
</a>
)
Expand Down

0 comments on commit efffb8a

Please sign in to comment.