Code

php-collection/functions.php: Escape/avoid problematic characters in RRD commandline
authorBruno Prémont <bonbons@linux-vserver.org>
Sun, 1 Mar 2009 21:20:06 +0000 (22:20 +0100)
committerFlorian Forster <octo@huhu.verplant.org>
Mon, 2 Mar 2009 08:31:18 +0000 (09:31 +0100)
commitd224ff4d51d564910eba4fe88516cd604ea00620
treee0f587d8ac08539a875ca95cf3ed75232e93b04a
parent77ee96acaa60fce37451037c1781b19921836026
php-collection/functions.php: Escape/avoid problematic characters in RRD commandline

php-collection/functions.php: Escape/avoid problematic characters in RRD commandline

rrdtool does not like '!' in variable names so replace them with '_'.
(bind plugin has them in a few type-instances and type-instance is used
as variable name by MetaGraphs)
Also escape rrdtool field seperators that might appear in file names.

Signed-off-by: Florian Forster <octo@huhu.verplant.org>
contrib/php-collection/functions.php