From 78e4d112f3573d5ae660ea33d54b7288320febac Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Thu, 25 Sep 2014 22:29:24 +0200 Subject: type/base: escape space character in rrdcached FLUSH command Closes #105 --- type/Base.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/type/Base.class.php b/type/Base.class.php index 7ee547e..1452d43 100644 --- a/type/Base.class.php +++ b/type/Base.class.php @@ -405,7 +405,7 @@ class Type_Base { } elseif ($this->flush_type == 'rrdcached') { foreach ($identifier as $val) { - $cmd = sprintf("FLUSH %s.rrd\n", $val); + $cmd = sprintf("FLUSH %s.rrd\n", str_replace(' ', '\\ ', $val)); $this->socket_cmd($socket, $cmd); } } -- cgit v1.1