Skip to content

Commit

Permalink
fix: properly escape special characters in profile name links
Browse files Browse the repository at this point in the history
  • Loading branch information
Zir0h committed Nov 20, 2024
1 parent b043b4f commit d496d62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/objkt-display/tabs/History.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function UsernameAndLink({ event, attr }) {
<>
{get(event, `${attr}_profile.name`) ? (
<span>
<Button href={`/${encodeURI(get(event, `${attr}_profile.name`))}`}>
<Button href={`/${encodeURIComponent(get(event, `${attr}_profile.name`))}`}>
{get(event, `${attr}_profile.name`)}
</Button>
</span>
Expand Down Expand Up @@ -224,7 +224,7 @@ export const History = () => {
from={<UsernameAndLink event={e} attr="from" />}
to={
<span>
<Button href={`/tz/${encodeURI(BURN_ADDRESS)}`}>
<Button href={`/tz/${encodeURIComponent(BURN_ADDRESS)}`}>
Burn Address
</Button>
</span>
Expand Down

0 comments on commit d496d62

Please sign in to comment.