From 7dcfd7db4f68c1c053923c6cb44f96364c26a9e7 Mon Sep 17 00:00:00 2001 From: Andreas Granig Date: Wed, 13 Nov 2013 00:23:46 +0100 Subject: [PATCH] MT#4961 Fix non-alphanumeric RRD filename handling --- share/templates/statistics/list.tt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/share/templates/statistics/list.tt b/share/templates/statistics/list.tt index 6b84f195e4..9a9939b7a7 100644 --- a/share/templates/statistics/list.tt +++ b/share/templates/statistics/list.tt @@ -40,7 +40,7 @@ [% even = 0 %] [% FOREACH item IN plotdata %]

[% item.title %]

-
loadingloading...
+
loadingloading...
[% END %] @@ -95,7 +95,7 @@ [% FOREACH url IN item.url %] "[% url %]", [% END %] - ], "plot_[% item.name %]", [% item.si ? "true" : "false" %]); + ], "plot_[% item.name | replace('[^a-zA-Z0-9_]+', '_') %]", [% item.si ? "true" : "false" %]); [% END %]