luci-mod-system: fix potential stored XSS
authorJo-Philipp Wich <[email protected]>
Fri, 13 Jan 2023 19:52:17 +0000 (20:52 +0100)
committerJo-Philipp Wich <[email protected]>
Fri, 13 Jan 2023 20:18:49 +0000 (21:18 +0100)
commitaa7938d4cb3a3f889dead894ea19334ad07ade51
tree224e973231f66462b33073d1be9409cb03a6cbae
parentd548d858c8cf62d36ab87dcf5d317fe05ede19cf
luci-mod-system: fix potential stored XSS

Make sure to escape the key contents in the delete confirmation dialog.

Signed-off-by: Jo-Philipp Wich <[email protected]>
(cherry picked from commit 0186d7eae0e123a409e9919a83fdfecc7945c984)
modules/luci-mod-system/htdocs/luci-static/resources/view/system/sshkeys.js