aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/src/models
diff options
context:
space:
mode:
authorskjnldsv <skjnldsv@protonmail.com>2024-11-14 10:32:12 +0100
committerskjnldsv <skjnldsv@protonmail.com>2024-11-14 10:32:12 +0100
commitd654cf7b5b71b279123f3dfd162c47aab2454cc0 (patch)
treeecef1f8d7a2d17c2f7ceba0272fac6a42d453b92 /apps/files/src/models
parentdfa7e7edea66c37a7b33965ad9e93648d44243b0 (diff)
downloadnextcloud-server-d654cf7b5b71b279123f3dfd162c47aab2454cc0.tar.gz
nextcloud-server-d654cf7b5b71b279123f3dfd162c47aab2454cc0.zip
chore(files): replace `@skjnldsv/sanitize-svg` with `DOMPurify`chore/drop-skjnldsv/sanitize-svg
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files/src/models')
-rw-r--r--apps/files/src/models/Tab.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/apps/files/src/models/Tab.js b/apps/files/src/models/Tab.js
index 7b5ec721f1c..b67d51f277f 100644
--- a/apps/files/src/models/Tab.js
+++ b/apps/files/src/models/Tab.js
@@ -2,7 +2,7 @@
* SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
-import { sanitizeSVG } from '@skjnldsv/sanitize-svg'
+import DOMPurify from 'dompurify'
export default class Tab {
@@ -80,10 +80,7 @@ export default class Tab {
this._scrollBottomReached = scrollBottomReached
if (typeof iconSvg === 'string') {
- sanitizeSVG(iconSvg)
- .then(sanitizedSvg => {
- this._iconSvgSanitized = sanitizedSvg
- })
+ this._iconSvgSanitized = DOMPurify.sanitize(iconSvg)
}
}