Commit ec0b0fd3 authored by cyeh%bluemartini.com's avatar cyeh%bluemartini.com

fix for 44653: Products with / in don't get any chart data

patch submitted by gavins@iplbath.com
parent 6af45043
......@@ -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") {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment