aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFerdinand Thiessen <opensource@fthiessen.de>2025-02-20 00:43:18 +0100
committerskjnldsv <skjnldsv@protonmail.com>2025-03-06 09:47:21 +0100
commita3845297afc5a242808888d4cec86b4a29e4c3e2 (patch)
tree0319e395daac31262e5a4ff8c7b8142a724a6e7c
parent4f2c2d073b11df9d4452274dd12e1788785d2c39 (diff)
downloadnextcloud-server-a3845297afc5a242808888d4cec86b4a29e4c3e2.tar.gz
nextcloud-server-a3845297afc5a242808888d4cec86b4a29e4c3e2.zip
fix(systemtags): Fix invalid dompurify import
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
-rw-r--r--apps/systemtags/src/components/SystemTagPicker.vue4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/systemtags/src/components/SystemTagPicker.vue b/apps/systemtags/src/components/SystemTagPicker.vue
index 1091f4c93d6..993efb5b650 100644
--- a/apps/systemtags/src/components/SystemTagPicker.vue
+++ b/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 {