From 4dabf1a9c679f06b3637d3c76e1e05aa83a6d259 Mon Sep 17 00:00:00 2001 From: Gervase Markham Date: Wed, 21 Jan 2015 19:49:57 +0000 Subject: Bug 1079065: [SECURITY] Always use the 3 arguments form for open() to prevent shell code injection r=dylan,a=simon --- collectstats.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'collectstats.pl') diff --git a/collectstats.pl b/collectstats.pl index 3473c9e71..339e428bc 100755 --- a/collectstats.pl +++ b/collectstats.pl @@ -309,7 +309,7 @@ sub regenerate_stats { return; } - if (open DATA, ">$file") { + if (open DATA, ">", $file) { my $fields = join('|', ('DATE', @statuses, @resolutions)); my $product_name = $product->name; print DATA <