mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2026-01-04 04:22:06 +00:00
utils: htmlEncode status text
so we don't accidentally interpret html tags in the output Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
d710ceeeb6
commit
867bf7e6f5
@ -928,7 +928,7 @@ utilities: {
|
||||
let parsed = Proxmox.Utils.parse_task_status(status);
|
||||
switch (parsed) {
|
||||
case 'unknown': return Proxmox.Utils.unknownText;
|
||||
case 'error': return Proxmox.Utils.errorText + ': ' + status;
|
||||
case 'error': return Proxmox.Utils.errorText + ': ' + Ext.htmlEncode(status);
|
||||
case 'warning': return status.replace('WARNINGS', Proxmox.Utils.warningsText);
|
||||
case 'ok': // fall-through
|
||||
default: return status;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user