[pbs-devel] [PATCH proxmox-backup] ui: remove unnecessary Ext.htmlEncode call

Gabriel Goller g.goller at proxmox.com
Tue Dec 10 17:13:58 CET 2024


The Ext.htmlEncode call is unnecessary, it is already called in
Markdown.parse.

Signed-off-by: Gabriel Goller <g.goller at proxmox.com>
---
 www/LoginView.js | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/www/LoginView.js b/www/LoginView.js
index f9da8ede1b99..07d14dc6cae2 100644
--- a/www/LoginView.js
+++ b/www/LoginView.js
@@ -25,9 +25,7 @@ Ext.define('PBS.LoginView', {
 		Ext.create('Proxmox.window.ConsentModal', {
 		    autoShow: true,
 		    consent: Proxmox.Markdown.parse(
-			Ext.htmlEncode(
-			    Proxmox.Utils.base64ToUtf8(Proxmox.consentText),
-			),
+			Proxmox.Utils.base64ToUtf8(Proxmox.consentText),
 		    ),
 		});
 	    }
-- 
2.39.5





More information about the pbs-devel mailing list