From: cyeh%bluemartini.com <> Date: Wed, 13 Sep 2000 04:35:46 +0000 (+0000) Subject: fix for 44653: Products with / in don't get any chart data X-Git-Tag: bugzilla-2.12~167 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec0b0fd35f50508ce5311fb1ae3677f992ddc4e0;p=thirdparty%2Fbugzilla.git fix for 44653: Products with / in don't get any chart data patch submitted by gavins@iplbath.com --- diff --git a/collectstats.pl b/collectstats.pl index 4789440dd0..12bf9fce4c 100755 --- a/collectstats.pl +++ b/collectstats.pl @@ -57,9 +57,11 @@ sub collect_stats { my $product = shift; my $when = localtime (time); - - $product =~ s/\//-/gs; - my $file = join '/', $dir, $product; + # NB: Need to mangle the product for the filename, but use the real + # product name in the query + my $file_product = $product; + $file_product =~ s/\//-/gs; + my $file = join '/', $dir, $file_product; my $exists = -f $file; if (open DATA, ">>$file") {