author | Sebastian Harl <sh@tokkee.org> | |
Sun, 30 Mar 2008 18:00:45 +0000 (20:00 +0200) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Mon, 31 Mar 2008 09:09:10 +0000 (11:09 +0200) | ||
commit | 130d20f6a99beb99b5370ed108732a15a4ce6440 | |
tree | bfc9c6a5b183ed360a352342353065b74e37a8ab | tree | snapshot |
parent | c3ad119fdb1db54b7e9d4f63f6218b1392c6f66f | commit | diff |
collection.cgi: Make sure to pass valid variable names to rrdgraph.
Variable names used with DEF, VDEF, etc. must be made up of the
characters "A-Z, a-z, 0-9, -, _". In meta_graph_generic_stack() variable
names have been generated from the instance name which may, however,
contain illegal characters. Now, all illegal characters will be replaced
with "_" and a number will be prepended to the variable name to make
sure the name is still unique.
Thanks to Joerg Jaspert for pointing this out and helpful debugging
information.
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
Variable names used with DEF, VDEF, etc. must be made up of the
characters "A-Z, a-z, 0-9, -, _". In meta_graph_generic_stack() variable
names have been generated from the instance name which may, however,
contain illegal characters. Now, all illegal characters will be replaced
with "_" and a number will be prepended to the variable name to make
sure the name is still unique.
Thanks to Joerg Jaspert for pointing this out and helpful debugging
information.
Signed-off-by: Sebastian Harl <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
contrib/collection.cgi | diff | blob | history |