summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcyeh%bluemartini.com <>2000-09-13 06:35:46 +0200
committercyeh%bluemartini.com <>2000-09-13 06:35:46 +0200
commitec0b0fd35f50508ce5311fb1ae3677f992ddc4e0 (patch)
tree2ca0a19e16241f733ad826e27f4d393163486b79
parent6af450431d34447a8ce96eefc26a9c9973c8abe1 (diff)
downloadbugzilla-ec0b0fd35f50508ce5311fb1ae3677f992ddc4e0.tar.gz
bugzilla-ec0b0fd35f50508ce5311fb1ae3677f992ddc4e0.tar.xz
fix for 44653: Products with / in don't get any chart data
patch submitted by gavins@iplbath.com
-rwxr-xr-xcollectstats.pl8
1 files changed, 5 insertions, 3 deletions
diff --git a/collectstats.pl b/collectstats.pl
index 4789440dd..12bf9fce4 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") {