You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "sha174n (via GitHub)" <gi...@apache.org> on 2026/06/02 14:19:11 UTC

Re: [PR] fix: sanitize URL sinks and trim sensitive log fields [superset]

sha174n commented on code in PR #40546:
URL: https://github.com/apache/superset/pull/40546#discussion_r3341902876


##########
superset-frontend/src/SqlLab/components/SaveDatasetModal/index.tsx:
##########
@@ -246,7 +246,7 @@ export const SaveDatasetModal = ({
     if (openWindow) {
       window.open(url, '_blank', 'noreferrer');

Review Comment:
   LGTM except this small detail: the `window.open` branch isn't going through `sanitizeUrl` like the `else` is. Same as what was done in `navigationUtils.ts`:
   
   ```ts
   window.open(sanitizeUrl(url), '_blank', 'noreferrer');
   ```



-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org