mirror of
https://git.proxmox.com/git/proxmox-backup
synced 2025-04-29 15:12:41 +00:00
ui: set error mask: ensure that message is html-encoded
to avoid interpreting HTML in the message when displaying the mask. Signed-off-by: Friedrich Weber <f.weber@proxmox.com> Reviewed-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
f7f61002ee
commit
839b7d8c89
@ -116,7 +116,7 @@ Ext.define('PBS.TapeManagement.BackupOverview', {
|
|||||||
|
|
||||||
Proxmox.Utils.setErrorMask(view, false);
|
Proxmox.Utils.setErrorMask(view, false);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
Proxmox.Utils.setErrorMask(view, error.toString());
|
Proxmox.Utils.setErrorMask(view, Ext.htmlEncode(error.toString()));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -597,7 +597,8 @@ Ext.define('PBS.TapeManagement.ChangerStatus', {
|
|||||||
if (!use_cache) {
|
if (!use_cache) {
|
||||||
Proxmox.Utils.setErrorMask(view);
|
Proxmox.Utils.setErrorMask(view);
|
||||||
}
|
}
|
||||||
Proxmox.Utils.setErrorMask(me.lookup('content'), response.result.message.toString());
|
let msg = Ext.htmlEncode(response.result.message.toString());
|
||||||
|
Proxmox.Utils.setErrorMask(me.lookup('content'), msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
me.scheduleReload(5000);
|
me.scheduleReload(5000);
|
||||||
|
Loading…
Reference in New Issue
Block a user