]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
fix for 44653: Products with / in don't get any chart data
authorcyeh%bluemartini.com <>
Wed, 13 Sep 2000 04:35:46 +0000 (04:35 +0000)
committercyeh%bluemartini.com <>
Wed, 13 Sep 2000 04:35:46 +0000 (04:35 +0000)
patch submitted by gavins@iplbath.com

collectstats.pl

index 4789440dd0db1a7392fba95ba10ccf8134a67cbe..12bf9fce4cbd4d0882cca804c3760a747c27ea97 100755 (executable)
@@ -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") {