From 8c181dc1e7fc07bb9b61e8465ba04e9d4c5b7838 Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Sun, 10 Aug 2014 11:28:07 +0200 Subject: jsrrdgraph: Fix parsing of rrdfiles containing escapes This fixes parsing of URLs such as 'rrd.php?path=some%3Ffile.rrd', and if people really insist, paths such as 'C:\bar.rrd' (must be written as 'C\:\\bar.rrd', add additional escapes for Javascript strings if needed). --- js/RrdCmdLine.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'js') diff --git a/js/RrdCmdLine.js b/js/RrdCmdLine.js index a2be92e..c222498 100644 --- a/js/RrdCmdLine.js +++ b/js/RrdCmdLine.js @@ -389,11 +389,13 @@ RrdCmdLine.prototype = { // DEF:=::[:step=][:start=