Skip to content

Commit

Permalink
WebAdmin events page: fix rendering of some nullable strings
Browse files Browse the repository at this point in the history
Signed-off-by: Nicola Murino <[email protected]>
  • Loading branch information
drakkan committed May 25, 2024
1 parent 2cc481c commit df441be
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions templates/webadmin/events.html
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,9 @@ <h3 data-i18n="events.search" class="card-title section-title">Search logs</h3>
defaultContent: "",
render: function(data, type, row) {
if (type === 'display') {
if (!data){
return "";
}
return escapeHTML(data);
}
return data;
Expand All @@ -546,6 +549,9 @@ <h3 data-i18n="events.search" class="card-title section-title">Search logs</h3>
data: "protocol",
defaultContent: "",
render: function(data, type, row) {
if (!data){
return "";
}
if (type === 'display') {
return escapeHTML(data);
}
Expand All @@ -557,6 +563,9 @@ <h3 data-i18n="events.search" class="card-title section-title">Search logs</h3>
defaultContent: "",
render: function(data, type, row) {
if (type === 'display') {
if (!data){
return "";
}
return escapeHTML(data);
}
return data;
Expand Down Expand Up @@ -763,6 +772,9 @@ <h3 data-i18n="events.search" class="card-title section-title">Search logs</h3>
defaultContent: "",
render: function(data, type, row) {
if (type === 'display') {
if (!data){
return "";
}
return escapeHTML(data);
}
return data;
Expand All @@ -773,6 +785,9 @@ <h3 data-i18n="events.search" class="card-title section-title">Search logs</h3>
defaultContent: "",
render: function(data, type, row) {
if (type === 'display') {
if (!data){
return "";
}
return escapeHTML(data);
}
return data;
Expand Down Expand Up @@ -919,6 +934,9 @@ <h3 data-i18n="events.search" class="card-title section-title">Search logs</h3>
defaultContent: "",
render: function(data, type, row) {
if (type === 'display') {
if (!data){
return "";
}
if (data){
return escapeHTML(data);
}
Expand Down

0 comments on commit df441be

Please sign in to comment.