evanmiller/mod_rrd_graph — pull request #1 by jhesch (2012-05-16 18:10:41+00:00)
Title: Allow spaces in argument values.

Hi Evan,

I was very pleased to find your rrd graph module. However, I wasn't able to include spaces in graph titles, etc., so I patched the module to replace tildes with spaces. Here it is if you'd like to merge it in.

Thanks,
Jacob

----

This is a hack to allow spaces in argument values (for example, for
arguments like --title). The hack is to have the module substitute all
occurrences of tilde in the URI with spaces before passing the
arguments to rrdtool.

It comes at the cost of losing the ability to place literal tilde
characters in graph text, which is not likely to be a problem in
practice. If it is found to be a problem, perhaps the character to
substitue (or the feature altogether) could be controlled with a
module directive.