From 4c7146f36ef54f91abd2acef652dce7cacef9898 Mon Sep 17 00:00:00 2001 From: Brad Jorgensen Date: Mon, 25 Aug 2014 14:32:15 -0500 Subject: fix rrd_escape() not escaping colons --- type/Base.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'type/Base.class.php') diff --git a/type/Base.class.php b/type/Base.class.php index 3bda273..35d6e8b 100644 --- a/type/Base.class.php +++ b/type/Base.class.php @@ -141,7 +141,7 @@ class Type_Base { function rrd_escape($value) { # In case people have really bizarre URLs in $CONFIG['rrd_url'], # it should not be dropped. - return str_replace('\\', '\\\\', $value); + $value = str_replace('\\', '\\\\', $value); # http://oss.oetiker.ch/rrdtool/doc/rrdgraph_graph.en.html#IEscaping_the_colon return str_replace(':', '\:', $value); } -- cgit v1.1