]> git.proxmox.com Git - proxmox-widget-toolkit.git/commit
utils: always html-encode response message
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 31 Jan 2023 14:41:39 +0000 (15:41 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 31 Jan 2023 14:41:42 +0000 (15:41 +0100)
commitcf93d1da5099080c793f0699eac359f646f887d1
treedb2fd2adb6053d6c6165236e8b3e91a575255042
parentd53046d66b5156a4d86508fb7cd97d2224722ae4
utils: always html-encode response message

while this is something that only the user that made the request will
see, and for most people the possibility of "hacking" themselves is
rather redundant, it is still not nice to have this possible in
general; as even if it's highly unlikely that there ever can be an
error triggered to another user via API2 request handling, hardening
against it is simply to cheap to not do it.

Reported-by: Marcel Fromkorth <marcel.fromkorth@8com.de>
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/Utils.js