From 32195ca88875d32fdae79865b98640d9298022c4 Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Sun, 12 Sep 2021 21:55:13 +0100 Subject: [PATCH] :lock: Removes v-html, to protect against XSS --- src/components/Configuration/AppInfoModal.vue | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/components/Configuration/AppInfoModal.vue b/src/components/Configuration/AppInfoModal.vue index 7a5cd265..8ba9dbc6 100644 --- a/src/components/Configuration/AppInfoModal.vue +++ b/src/components/Configuration/AppInfoModal.vue @@ -11,7 +11,7 @@

No recent errors detected :)

Service Worker Status

-
{{ serviceWorkerInfo }}
+
{{ serviceWorkerInfo }}

Config Validation Status

{{getIsConfigValidStatus()}}
@@ -82,14 +82,14 @@ export default { const sessionData = sessionStorage[sessionStorageKeys.SW_STATUS]; const swInfo = sessionData ? JSON.parse(sessionData) : {}; let swStatus = ''; - if (swInfo.registered) swStatus += 'Service worker registered
'; - if (swInfo.ready) swStatus += 'Dashy is being served from service worker
'; - if (swInfo.cached) swStatus += 'Content has been cached for offline use
'; - if (swInfo.updateFound) swStatus += 'New content is downloading
'; - if (swInfo.updated) swStatus += 'New content is available; please refresh
'; - if (swInfo.offline) swStatus += 'No internet connection found. App is running in offline mode
'; - if (swInfo.error) swStatus += 'Error during service worker registration
'; - if (swInfo.devMode) swStatus += 'App running in dev mode, no need for service worker
'; + if (swInfo.registered) swStatus += 'Service worker registered\n'; + if (swInfo.ready) swStatus += 'Dashy is being served from service worker\n'; + if (swInfo.cached) swStatus += 'Content has been cached for offline use\n'; + if (swInfo.updateFound) swStatus += 'New content is downloading\n'; + if (swInfo.updated) swStatus += 'New content is available; please refresh\n'; + if (swInfo.offline) swStatus += 'No internet connection found. App is running in offline mode\n'; + if (swInfo.error) swStatus += 'Error during service worker registration\n'; + if (swInfo.devMode) swStatus += 'App running in dev mode, no need for service worker\n'; if (swStatus.length === 0) swStatus += 'No service worker info available'; return swStatus; },