diff options
author | 2000-09-13 04:35:46 +0000 | |
---|---|---|
committer | 2000-09-13 04:35:46 +0000 | |
commit | ec0b0fd35f50508ce5311fb1ae3677f992ddc4e0 (patch) | |
tree | 2ca0a19e16241f733ad826e27f4d393163486b79 /collectstats.pl | |
parent | fix for 51299: RemoveVotes email should use the 'sendmailnow' Param. patch by... (diff) | |
download | bugzilla-ec0b0fd35f50508ce5311fb1ae3677f992ddc4e0.tar.gz bugzilla-ec0b0fd35f50508ce5311fb1ae3677f992ddc4e0.tar.bz2 bugzilla-ec0b0fd35f50508ce5311fb1ae3677f992ddc4e0.zip |
fix for 44653: Products with / in don't get any chart data
patch submitted by gavins@iplbath.com
Diffstat (limited to 'collectstats.pl')
-rwxr-xr-x | collectstats.pl | 8 |
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") { |