aboutsummaryrefslogtreecommitdiffstats
path: root/collectstats.pl
diff options
context:
space:
mode:
authorGervase Markham <gerv@mozilla.org>2015-01-21 20:06:08 +0000
committerDavid Lawrence <dkl@mozilla.com>2015-01-21 20:06:08 +0000
commit19117cc3e4da268d64107957e4c206d8df875505 (patch)
tree81546dbda0b66c7463407c3854ee98689326dc15 /collectstats.pl
parent272b0b69b2884d937ffd4b5b01fb89235603c67c (diff)
downloadbugs-19117cc3e4da268d64107957e4c206d8df875505.tar
bugs-19117cc3e4da268d64107957e4c206d8df875505.tar.gz
bugs-19117cc3e4da268d64107957e4c206d8df875505.tar.bz2
bugs-19117cc3e4da268d64107957e4c206d8df875505.tar.xz
bugs-19117cc3e4da268d64107957e4c206d8df875505.zip
Bug 1079065: [SECURITY] Always use the 3 arguments form for open() to prevent shell code injection
r=dkl,a=glob
Diffstat (limited to 'collectstats.pl')
-rwxr-xr-xcollectstats.pl2
1 files changed, 1 insertions, 1 deletions
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 <<FIN;