From a7db0e688693f175f4812da932aea2598fa9af60 Mon Sep 17 00:00:00 2001 From: Tobi Oetiker Date: Thu, 16 Aug 2007 11:25:36 +0000 Subject: split uri on & and ; --- htdocs/js/smokeping_zoom.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'htdocs') diff --git a/htdocs/js/smokeping_zoom.js b/htdocs/js/smokeping_zoom.js index 3f19db5..ff2d88d 100644 --- a/htdocs/js/smokeping_zoom.js +++ b/htdocs/js/smokeping_zoom.js @@ -22,7 +22,7 @@ function urlObj(url) { urlBaseAndParameters = url.split("?"); this.urlBase = urlBaseAndParameters[0]; - this.urlParameters = urlBaseAndParameters[1].split(";"); + this.urlParameters = urlBaseAndParameters[1].split(/[;&]/); this.getUrlBase = urlObjGetUrlBase; this.getUrlParameterValue = urlObjGetUrlParameterValue; -- cgit v1.2.3-24-g4f1b