Skip to content

Commit

Permalink
Attempt to fix potential XSS
Browse files Browse the repository at this point in the history
  • Loading branch information
cheeaun committed Jan 26, 2025
1 parent de0da11 commit ffbd07b
Show file tree
Hide file tree
Showing 2 changed files with 122 additions and 116 deletions.
16 changes: 11 additions & 5 deletions src/components/account-info.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -378,11 +378,17 @@ function AccountInfo({
<p>
<Trans>Unable to load account.</Trans>
</p>
<p>
<a href={isString ? account : url} target="_blank" rel="noopener">
<Trans>Go to account page</Trans> <Icon icon="external" />
</a>
</p>
{isString ? (
<p>
<code class="insignificant">{account}</code>
</p>
) : (
<p>
<a href={url} target="_blank" rel="noopener">
<Trans>Go to account page</Trans> <Icon icon="external" />
</a>
</p>
)}
</div>
)}
{uiState === 'loading' ? (
Expand Down
Loading

0 comments on commit ffbd07b

Please sign in to comment.