diff options
author | Brad Jorgensen | 2014-08-25 14:32:15 -0500 |
---|---|---|
committer | Brad Jorgensen | 2014-08-25 14:32:15 -0500 |
commit | 4c7146f36ef54f91abd2acef652dce7cacef9898 (patch) | |
tree | cf45ac4475318aed3645c66a16194d02259e74ce | |
parent | inc/html: add deprecation message about collectd 4 (diff) | |
download | apt-panopticon_cgp-4c7146f36ef54f91abd2acef652dce7cacef9898.zip apt-panopticon_cgp-4c7146f36ef54f91abd2acef652dce7cacef9898.tar.gz apt-panopticon_cgp-4c7146f36ef54f91abd2acef652dce7cacef9898.tar.bz2 apt-panopticon_cgp-4c7146f36ef54f91abd2acef652dce7cacef9898.tar.xz |
fix rrd_escape() not escaping colons
-rw-r--r-- | type/Base.class.php | 2 |
1 files changed, 1 insertions, 1 deletions
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 { | |||
141 | function rrd_escape($value) { | 141 | function rrd_escape($value) { |
142 | # In case people have really bizarre URLs in $CONFIG['rrd_url'], | 142 | # In case people have really bizarre URLs in $CONFIG['rrd_url'], |
143 | # it should not be dropped. | 143 | # it should not be dropped. |
144 | return str_replace('\\', '\\\\', $value); | 144 | $value = str_replace('\\', '\\\\', $value); |
145 | # http://oss.oetiker.ch/rrdtool/doc/rrdgraph_graph.en.html#IEscaping_the_colon | 145 | # http://oss.oetiker.ch/rrdtool/doc/rrdgraph_graph.en.html#IEscaping_the_colon |
146 | return str_replace(':', '\:', $value); | 146 | return str_replace(':', '\:', $value); |
147 | } | 147 | } |