[TASK] Replace all specialchars in NODE_NAME in stat urls
This commit is contained in:
parent
d5354e0261
commit
32ea88c65a
@ -238,7 +238,7 @@ define(["moment", "numeral", "tablesort", "tablesort.number", "moment.de"],
|
||||
function showStatImg(o, d) {
|
||||
var subst = {};
|
||||
subst["{NODE_ID}"] = d.nodeinfo.node_id ? d.nodeinfo.node_id : "unknown";
|
||||
subst["{NODE_NAME}"] = d.nodeinfo.hostname ? d.nodeinfo.hostname : "unknown";
|
||||
subst["{NODE_NAME}"] = d.nodeinfo.hostname ? d.nodeinfo.hostname.replace(/[^a-z0-9\-]/ig, '_') : "unknown";
|
||||
return showStat(o, subst);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user