Skip to content

Commit c3c6a75

Browse files
Merge pull request #49275 from nextcloud/chore/drop-skjnldsv/sanitize-svg
2 parents e68c7f2 + 2d2c060 commit c3c6a75

File tree

6 files changed

+5
-42
lines changed

6 files changed

+5
-42
lines changed

apps/files/src/models/Tab.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
33
* SPDX-License-Identifier: AGPL-3.0-or-later
44
*/
5-
import { sanitizeSVG } from '@skjnldsv/sanitize-svg'
5+
import DOMPurify from 'dompurify'
66

77
export default class Tab {
88

@@ -80,10 +80,7 @@ export default class Tab {
8080
this._scrollBottomReached = scrollBottomReached
8181

8282
if (typeof iconSvg === 'string') {
83-
sanitizeSVG(iconSvg)
84-
.then(sanitizedSvg => {
85-
this._iconSvgSanitized = sanitizedSvg
86-
})
83+
this._iconSvgSanitized = DOMPurify.sanitize(iconSvg)
8784
}
8885

8986
}

dist/files-sidebar.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/files-sidebar.js.license

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ SPDX-FileCopyrightText: Tobias Koppers @sokra
1818
SPDX-FileCopyrightText: Titus Wormer <[email protected]> (https://wooorm.com)
1919
SPDX-FileCopyrightText: Thorsten Lünborg
2020
SPDX-FileCopyrightText: T. Jameson Little <[email protected]>
21-
SPDX-FileCopyrightText: Sindre Sorhus
2221
SPDX-FileCopyrightText: Roman Shtylman <[email protected]>
2322
SPDX-FileCopyrightText: Roeland Jago Douma
2423
SPDX-FileCopyrightText: Raynos <[email protected]>
@@ -129,9 +128,6 @@ This file is generated from multiple sources. Included packages:
129128
- @nextcloud/vue
130129
- version: 8.17.1
131130
- license: AGPL-3.0-or-later
132-
- is-svg
133-
- version: 4.4.0
134-
- license: MIT
135131
- @vueuse/components
136132
- version: 11.1.0
137133
- license: MIT

dist/files-sidebar.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 0 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@
6363
"@nextcloud/upload": "^1.7.0",
6464
"@nextcloud/vue": "^8.17.1",
6565
"@simplewebauthn/browser": "^10.0.0",
66-
"@skjnldsv/sanitize-svg": "^1.0.2",
6766
"@vueuse/components": "^11.1.0",
6867
"@vueuse/core": "^11.0.1",
6968
"@vueuse/integrations": "^11.1.0",

0 commit comments

Comments
 (0)