Don't try to encode a null SSID in Port SSID report

This commit is contained in:
Eric A. Miller
2014-06-02 22:40:10 -04:00
parent 592307dd32
commit 19919f6534

View File

@@ -64,7 +64,7 @@ $(document).ready(function() {
{ {
"data": 'ssid', "data": 'ssid',
"render": function(data, type, row, meta) { "render": function(data, type, row, meta) {
return '<a href="[% uri_for('/report/portssid') %]?ssid=' + encodeURIComponent(data) + '">' + he.encode(data) + '</a>'; return '<a href="[% uri_for('/report/portssid') %]?ssid=' + encodeURIComponent(data) + '">' + he.encode(data || '') + '</a>';
} }
}, { }, {
"data": 'broadcast', "data": 'broadcast',