mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 09:42:09 -04:00
fix(systemtags): Fix invalid dompurify import
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
This commit is contained in:
parent
a1f1dc0eac
commit
996035ced8
1 changed files with 2 additions and 2 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue