Skip to content

Commit

Permalink
Fixes interfaces names not displayed with special characters
Browse files Browse the repository at this point in the history
  • Loading branch information
MatteoBiscosi committed May 28, 2024
1 parent 4d0032a commit cc7d9b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions http_src/vue/page-snmp-interfaces.vue
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ const map_table_def_columns = (columns) => {
return `<a href=${url}>${value}</a>`
},
"interface_name": (value, row) => {
value = value.replace(/</g, "&lt;").replace(/>/g, "&gt;");
const url = `${http_prefix}/lua/pro/enterprise/snmp_interface_details.lua?host=${row.device_ip}&snmp_port_idx=${row.interface_id}`
return `<a href=${url}>${value}</a>`
},
Expand Down
2 changes: 1 addition & 1 deletion httpdocs/dist
Submodule dist updated 1 files
+2 −2 ntopng.js

0 comments on commit cc7d9b4

Please sign in to comment.