fix: sanitize URL sinks and trim sensitive log fields (#40546)

Co-authored-by: Claude Code <noreply@anthropic.com>
This commit is contained in:
Evan Rusackas
2026-06-02 11:52:02 -07:00
committed by GitHub
parent b97d3ef520
commit 00dd31494d
13 changed files with 65 additions and 39 deletions

View File

@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
import { sanitizeUrl } from '@braintree/sanitize-url';
import { useCallback, useState, FormEvent } from 'react';
import { ModalTitleWithIcon } from 'src/components/ModalTitleWithIcon';
import { Radio, RadioChangeEvent } from '@superset-ui/core/components/Radio';
@@ -245,9 +245,9 @@ export const SaveDatasetModal = ({
const createWindow = (url: string) => {
if (openWindow) {
window.open(url, '_blank', 'noreferrer');
window.open(sanitizeUrl(url), '_blank', 'noreferrer');
} else {
window.location.href = url;
window.location.href = sanitizeUrl(url);
}
};
const formDataWithDefaults = {