[pmg-devel] [PATCH pmg-gui] system options: html encode 'from for admin mail' field
Dominik Csapak
d.csapak at proxmox.com
Wed Feb 26 10:50:07 CET 2025
since that often has the format of: "Name <some at email.example>"
and the <..> part will be incorrectly interpreted as html otherwise.
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
js/SystemOptions.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/js/SystemOptions.js b/js/SystemOptions.js
index 3c8d960..cc098ce 100644
--- a/js/SystemOptions.js
+++ b/js/SystemOptions.js
@@ -76,7 +76,7 @@ Ext.define('PMG.SystemOptions', {
{ deleteEmpty: true, defaultValue: Proxmox.Utils.noneText });
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"));
--
2.39.5
More information about the pmg-devel
mailing list