mirror of
https://github.com/apache/superset.git
synced 2026-07-23 23:25:45 +00:00
fix: sanitize URL sinks and trim sensitive log fields (#40546)
Co-authored-by: Claude Code <noreply@anthropic.com>
This commit is contained in:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user