From ba3e2ecb5f7c3e9a5e84d3cf572b83c2d999c6b3 Mon Sep 17 00:00:00 2001 From: Nicola Murino Date: Sat, 25 May 2024 16:17:33 +0200 Subject: [PATCH] WebAdmin events page: fix rendering of some nullable strings Signed-off-by: Nicola Murino --- templates/webadmin/events.html | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/templates/webadmin/events.html b/templates/webadmin/events.html index 98f8748d..ffd5bf8e 100644 --- a/templates/webadmin/events.html +++ b/templates/webadmin/events.html @@ -537,6 +537,9 @@ explicit grant from the SFTPGo Team (support@sftpgo.com). defaultContent: "", render: function(data, type, row) { if (type === 'display') { + if (!data){ + return ""; + } return escapeHTML(data); } return data; @@ -546,6 +549,9 @@ explicit grant from the SFTPGo Team (support@sftpgo.com). data: "protocol", defaultContent: "", render: function(data, type, row) { + if (!data){ + return ""; + } if (type === 'display') { return escapeHTML(data); } @@ -557,6 +563,9 @@ explicit grant from the SFTPGo Team (support@sftpgo.com). defaultContent: "", render: function(data, type, row) { if (type === 'display') { + if (!data){ + return ""; + } return escapeHTML(data); } return data; @@ -763,6 +772,9 @@ explicit grant from the SFTPGo Team (support@sftpgo.com). defaultContent: "", render: function(data, type, row) { if (type === 'display') { + if (!data){ + return ""; + } return escapeHTML(data); } return data; @@ -773,6 +785,9 @@ explicit grant from the SFTPGo Team (support@sftpgo.com). defaultContent: "", render: function(data, type, row) { if (type === 'display') { + if (!data){ + return ""; + } return escapeHTML(data); } return data; @@ -919,6 +934,9 @@ explicit grant from the SFTPGo Team (support@sftpgo.com). defaultContent: "", render: function(data, type, row) { if (type === 'display') { + if (!data){ + return ""; + } if (data){ return escapeHTML(data); }