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:
Dominik Csapak 2025-02-26 10:50:07 +01:00 committed by Thomas Lamprecht
parent 2143347bde
commit d6ab21faf4

View File

@ -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"));