bito-code-review[bot] commented on PR #43825:
URL: https://github.com/apache/superset/pull/43825#issuecomment-5542671716
<!-- Bito Reply -->
The pull request addresses the security concern regarding unescaped
exception text being interpreted as HTML by centralizing URL sanitization. The
`toSafeHref` utility function was moved from `LeftCell.tsx` to `urlUtils.ts`
and is now applied to the `href` attribute in `ArchivedDatasetPurgeModal.tsx`
to ensure only safe `http` or `https` protocols are rendered as links.
**superset-frontend/src/pages/ArchivedList/ArchivedDatasetPurgeModal.tsx**
```
<a href={toSafeHref(item.url)}>{item.name}</a>
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]