From 8e7c07a12c3512f3be60231e3c68c1ebbaa366af Mon Sep 17 00:00:00 2001 From: "gerv%gerv.net" <> Date: Wed, 6 Dec 2000 06:36:25 +0000 Subject: Bug 6682: moving location of graph creation dir to graphs instead of data/mining, for security reasons. --- reports.cgi | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'reports.cgi') diff --git a/reports.cgi b/reports.cgi index d6a38c0ea..0287e07ff 100755 --- a/reports.cgi +++ b/reports.cgi @@ -49,6 +49,7 @@ require "globals.pl"; use vars qw(@legal_product); # globals from er, globals.pl my $dir = "data/mining"; +my $graph_dir = "graphs"; my @status = qw (NEW ASSIGNED REOPENED); my %bugsperperson; @@ -500,10 +501,10 @@ FIN my $type = chart_image_type(); my $data_file = daily_stats_filename($FORM{product}); my $image_file = chart_image_name($data_file, $type); - my $url_image = "$dir/" . url_quote($image_file); + my $url_image = "$graph_dir/" . url_quote($image_file); - if (! -e "$dir/$image_file") { - generate_chart("$dir/$data_file", "$dir/$image_file", $type); + if (! -e "$graph_dir/$image_file") { + generate_chart("$dir/$data_file", "$graph_dir/$image_file", $type); } print <