diff --git a/share/views/ajax/device/addresses.tt b/share/views/ajax/device/addresses.tt
index 448bc385..9ab40efc 100644
--- a/share/views/ajax/device/addresses.tt
+++ b/share/views/ajax/device/addresses.tt
@@ -32,7 +32,7 @@ $(document).ready(function() {
"render": function(data, type, row, meta) {
return type === 'display' ?
'' + he.encode(data || '') + '' :
- data;
+ he.encode(data || '');
}
}, {
"data": 'name',
diff --git a/share/views/ajax/report/apclients.tt b/share/views/ajax/report/apclients.tt
index c3fc8cd3..bcfef160 100644
--- a/share/views/ajax/report/apclients.tt
+++ b/share/views/ajax/report/apclients.tt
@@ -41,8 +41,8 @@ $(document).ready(function() {
"type": 'portsort',
"render": function(data, type, row, meta) {
return type === 'display' ?
- '' + he.encode(data) + '' :
- data;
+ '' + he.encode(data || '') + '' :
+ he.encode(data || '');
}
}, {
"data": 'ssid',
diff --git a/share/views/ajax/report/apradiochannelpower.tt b/share/views/ajax/report/apradiochannelpower.tt
index 3a283562..6faf2299 100644
--- a/share/views/ajax/report/apradiochannelpower.tt
+++ b/share/views/ajax/report/apradiochannelpower.tt
@@ -59,8 +59,8 @@ $(document).ready(function() {
"type": 'portsort',
"render": function(data, type, row, meta) {
return type === 'display' ?
- '' + he.encode(data) + '' :
- data;
+ '' + he.encode(data || '') + '' :
+ he.encode(data || '');
}
}, {
"data": 'port_name',
diff --git a/share/views/ajax/report/duplexmismatch.tt b/share/views/ajax/report/duplexmismatch.tt
index 17548fc3..7d36bfd2 100644
--- a/share/views/ajax/report/duplexmismatch.tt
+++ b/share/views/ajax/report/duplexmismatch.tt
@@ -27,8 +27,8 @@ $(document).ready(function() {
"type": 'portsort',
"render": function(data, type, row, meta) {
return type === 'display' ?
- '' + he.encode(data) + '' :
- data;
+ '' + he.encode(data || '') + '' :
+ he.encode(data || '');
}
}, {
"data": 'left_duplex',
@@ -45,8 +45,8 @@ $(document).ready(function() {
"type": 'portsort',
"render": function(data, type, row, meta) {
return type === 'display' ?
- '' + he.encode(data) + '' :
- data;
+ '' + he.encode(data || '') + '' :
+ he.encode(data || '');
}
}, {
"data": 'right_duplex',
diff --git a/share/views/ajax/report/halfduplex.tt b/share/views/ajax/report/halfduplex.tt
index 4427ce99..8816d758 100644
--- a/share/views/ajax/report/halfduplex.tt
+++ b/share/views/ajax/report/halfduplex.tt
@@ -25,8 +25,8 @@ $(document).ready(function() {
"type": 'portsort',
"render": function(data, type, row, meta) {
return type === 'display' ?
- '' + he.encode(data) + '' :
- data;
+ '' + he.encode(data || '') + '' :
+ he.encode(data || '');
}
}, {
"data": 'name',
diff --git a/share/views/ajax/report/nodesdiscovered.tt b/share/views/ajax/report/nodesdiscovered.tt
index 98db813e..841d17f2 100644
--- a/share/views/ajax/report/nodesdiscovered.tt
+++ b/share/views/ajax/report/nodesdiscovered.tt
@@ -27,8 +27,8 @@ $(document).ready(function() {
"type": 'portsort',
"render": function(data, type, row, meta) {
return type === 'display' ?
- '' + he.encode(data) + '' :
- data;
+ '' + he.encode(data || '') + '' :
+ he.encode(data || '');
}
}, {
"data": 'remote_id',
diff --git a/share/views/ajax/report/portadmindown.tt b/share/views/ajax/report/portadmindown.tt
index 9a8c516c..207be63a 100644
--- a/share/views/ajax/report/portadmindown.tt
+++ b/share/views/ajax/report/portadmindown.tt
@@ -25,8 +25,8 @@ $(document).ready(function() {
"type": 'portsort',
"render": function(data, type, row, meta) {
return type === 'display' ?
- '' + he.encode(data) + '' :
- data;
+ '' + he.encode(data || '') + '' :
+ he.encode(data || '');
}
}, {
"data": 'description',
diff --git a/share/views/ajax/report/portblocking.tt b/share/views/ajax/report/portblocking.tt
index 5ff08dc9..7632eb3d 100644
--- a/share/views/ajax/report/portblocking.tt
+++ b/share/views/ajax/report/portblocking.tt
@@ -26,8 +26,8 @@ $(document).ready(function() {
"type": 'portsort',
"render": function(data, type, row, meta) {
return type === 'display' ?
- '' + he.encode(data) + '' :
- data;
+ '' + he.encode(data || '') + '' :
+ he.encode(data || '');
}
}, {
"data": 'description',
diff --git a/share/views/ajax/report/portmultinodes.tt b/share/views/ajax/report/portmultinodes.tt
index 8b45c411..30ccb6ad 100644
--- a/share/views/ajax/report/portmultinodes.tt
+++ b/share/views/ajax/report/portmultinodes.tt
@@ -26,8 +26,8 @@ $(document).ready(function() {
"type": 'portsort',
"render": function(data, type, row, meta) {
return type === 'display' ?
- '' + he.encode(data) + '' :
- data;
+ '' + he.encode(data || '') + '' :
+ he.encode(data || '');
}
}, {
"data": 'description',
diff --git a/share/views/ajax/report/portvlanmismatch.tt b/share/views/ajax/report/portvlanmismatch.tt
index 6f276177..80a17501 100644
--- a/share/views/ajax/report/portvlanmismatch.tt
+++ b/share/views/ajax/report/portvlanmismatch.tt
@@ -20,27 +20,27 @@ $(document).ready(function() {
{
"data": 'left_device',
"render": function(data, type, row, meta) {
- return '' + he.encode(data) + ''; }
+ return '' + he.encode(data || '') + ''; }
}, {
"data": 'left_port',
"type": 'portsort',
"render": function(data, type, row, meta) {
return type === 'display' ?
- '' + he.encode(data) + '' :
- data; }
+ '' + he.encode(data || '') + '' :
+ he.encode(data || ''); }
}, {
"data": 'left_vlans'
}, {
"data": 'right_device',
"render": function(data, type, row, meta) {
- return '' + he.encode(data) + ''; }
+ return '' + he.encode(data || '') + ''; }
}, {
"data": 'right_port',
"type": 'portsort',
"render": function(data, type, row, meta) {
return type === 'display' ?
- '' + he.encode(data) + '' :
- data; }
+ '' + he.encode(data || '') + '' :
+ he.encode(data || ''); }
}, {
"data": 'right_vlans'
}