[TASK] Replace all specialchars in NODE_NAME in stat urls

This commit is contained in:
Xaver Maierhofer 2016-05-23 00:48:03 +02:00
parent d5354e0261
commit 32ea88c65a
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}