]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(core): Do not use `v-html` for translation output
authorFerdinand Thiessen <opensource@fthiessen.de>
Mon, 18 Nov 2024 13:31:05 +0000 (14:31 +0100)
committernextcloud-command <nextcloud-command@users.noreply.github.com>
Tue, 19 Nov 2024 09:35:23 +0000 (09:35 +0000)
The content that can be renderered does *not* include HTML (see
`recommended` object).
But `v-html` was used, this is potentially dangerous, even though we
sanitize the translation values, so no urgent harm but better safe than
sorry.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
core/src/components/setup/RecommendedApps.vue

index 9bab568a924e0494ed8a8ad30360959ad223bac7..d6600ee35d5ef8f11eb408e0ee7c13a29aaaef1d 100644 (file)
@@ -18,7 +18,7 @@
                                <img :src="customIcon(app.id)" alt="">
                                <div class="info">
                                        <h3>{{ customName(app) }}</h3>
-                                       <p v-html="customDescription(app.id)" />
+                                       <p v-text="customDescription(app.id)" />
                                        <p v-if="app.installationError">
                                                <strong>{{ t('core', 'App download or installation failed') }}</strong>
                                        </p>