Skip to content

Commit

Permalink
Merge pull request #7549 from VikalpRusia/escape-html-creating
Browse files Browse the repository at this point in the history
Escaped HTML in the snapshot creation dialog box
  • Loading branch information
mook-as authored Sep 26, 2024
2 parents 8af4e1b + 0387a1b commit 2b2c765
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/rancher-desktop/pages/snapshots/create.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { mapGetters } from 'vuex';
import { Snapshot, SnapshotEvent } from '@pkg/main/snapshots/types';
import { ipcRenderer } from '@pkg/utils/ipcRenderer';
import { escapeHtml } from '@pkg/utils/string';
const defaultName = () => {
const dateString = dayjs().format('YYYY-MM-DD_HH_mm_ss');
Expand Down Expand Up @@ -109,7 +110,7 @@ export default Vue.extend({
format: {
header: this.t('snapshots.dialog.creating.header', { snapshot: name }),
showProgressBar: true,
message: this.t('snapshots.dialog.creating.message', { snapshot: name }, true),
message: this.t('snapshots.dialog.creating.message', { snapshot: escapeHtml(name) }, true),
snapshotEventType: 'create',
},
},
Expand Down

0 comments on commit 2b2c765

Please sign in to comment.