mirror of
https://git.proxmox.com/git/pmg-gui
synced 2025-10-04 08:05:56 +00:00
system options: html encode 'admin-mail-from' field
Since the value of the 'admin-mail-from' field has normally a format like "Full Name <some@email.example>" the <..> part would be incorrectly interpreted as HTML without encoding it, causing visual glitches here. Signed-off-by: Dominik Csapak <d.csapak@proxmox.com> Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
2143347bde
commit
d6ab21faf4
@ -76,7 +76,7 @@ Ext.define('PMG.SystemOptions', {
|
|||||||
{ deleteEmpty: true, defaultValue: Proxmox.Utils.noneText });
|
{ deleteEmpty: true, defaultValue: Proxmox.Utils.noneText });
|
||||||
|
|
||||||
me.add_text_row('admin-mail-from', gettext("'From:' for Admin Mail"),
|
me.add_text_row('admin-mail-from', gettext("'From:' for Admin Mail"),
|
||||||
{ deleteEmpty: true, defaultValue: Proxmox.Utils.noneText });
|
{ deleteEmpty: true, defaultValue: Proxmox.Utils.noneText, renderer: Ext.htmlEncode });
|
||||||
|
|
||||||
me.add_proxy_row('http_proxy', gettext("HTTP proxy"));
|
me.add_proxy_row('http_proxy', gettext("HTTP proxy"));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user