From ec0b0fd35f50508ce5311fb1ae3677f992ddc4e0 Mon Sep 17 00:00:00 2001 From: "cyeh%bluemartini.com" <> Date: Wed, 13 Sep 2000 04:35:46 +0000 Subject: fix for 44653: Products with / in don't get any chart data patch submitted by gavins@iplbath.com --- collectstats.pl | 8 +++++--- 1 file 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") { -- cgit v1.2.3-24-g4f1b