Browse Source
fix(systemtags): Fix invalid dompurify import
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
pull/50818/head
Ferdinand Thiessen
9 months ago
No known key found for this signature in database
GPG Key ID: 45FAE7268762B400
1 changed files with
2 additions and
2 deletions
-
apps/systemtags/src/components/SystemTagPicker.vue
|
|
|
@ -128,9 +128,9 @@ import type { Tag, TagWithId } from '../types' |
|
|
|
import { defineComponent } from 'vue' |
|
|
|
import { emit } from '@nextcloud/event-bus' |
|
|
|
import { getLanguage, n, t } from '@nextcloud/l10n' |
|
|
|
import { sanitize } from 'dompurify' |
|
|
|
import { showError, showInfo } from '@nextcloud/dialogs' |
|
|
|
import debounce from 'debounce' |
|
|
|
import domPurify from 'dompurify' |
|
|
|
import escapeHTML from 'escape-html' |
|
|
|
|
|
|
|
import NcButton from '@nextcloud/vue/dist/Components/NcButton.js' |
|
|
|
@ -378,7 +378,7 @@ export default defineComponent({ |
|
|
|
}) |
|
|
|
} |
|
|
|
const chipHtml = chipCloneEl.outerHTML |
|
|
|
return chipHtml.replace('%s', escapeHTML(sanitize(tag.displayName))) |
|
|
|
return chipHtml.replace('%s', escapeHTML(domPurify.sanitize(tag.displayName))) |
|
|
|
}, |
|
|
|
|
|
|
|
formatTagName(tag: TagWithId): string { |
|
|
|
|