@cryptotaxi247 / netdata-1 / commits / dc7c912e0

verify server hash is not empty

Costa Tsaousis (ktsaou) committed Nov 14, 2017 at 14:50 UTC dc7c912e0f005e870cd6c1ebcf4f5338e7cc013d
1 file changed +3 -1
web/index.html
+3 -1
@@ -566,8 +566,10 @@
566 if(typeof urlOptions.before === 'string')
567 urlOptions.before = parseInt(urlOptions.before);
568
569 - if(urlOptions.server !== null)
569 + if(urlOptions.server !== null && urlOptions.server !== '')
570 netdataServer = urlOptions.server;
571 + else
572 + urlOptions.server = null;
573
574 if(urlOptions.before > 0 && urlOptions.after > 0) {
575 urlOptions.pan_and_zoom = true;