From bd480aa1db4ace2342c7cf18a4af01fc20506c58 Mon Sep 17 00:00:00 2001 From: Ian Walton Date: Sat, 22 Apr 2023 10:12:58 -0400 Subject: [PATCH] Escape device id in raw HTML. --- src/controllers/dashboard/devices/devices.js | 7 ++++--- src/scripts/imagehelper.js | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/controllers/dashboard/devices/devices.js b/src/controllers/dashboard/devices/devices.js index d57652ed11..b72bc1de06 100644 --- a/src/controllers/dashboard/devices/devices.js +++ b/src/controllers/dashboard/devices/devices.js @@ -96,11 +96,12 @@ import confirm from '../../../components/confirm/confirm'; let html = ''; html += devices.map(function (device) { let deviceHtml = ''; - deviceHtml += "
"; + deviceHtml += "