aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGervase Markham <gerv@mozilla.org>2015-01-21 20:22:21 +0000
committerDavid Lawrence <dkl@mozilla.com>2015-01-21 20:22:21 +0000
commitf5b9cba3b42b6823288889a42078cf6f70aa4840 (patch)
tree55733e1ca38714f1124771f0460b3423a936ac2b /collectstats.pl
parentFix an obsolete ID (diff)
downloadbugzilla-f5b9cba3b42b6823288889a42078cf6f70aa4840.tar.gz
bugzilla-f5b9cba3b42b6823288889a42078cf6f70aa4840.tar.bz2
bugzilla-f5b9cba3b42b6823288889a42078cf6f70aa4840.zip
Bug 1079065: [SECURITY] Always use the 3 arguments form for open() to prevent shell code injection
r=dylan,a=simon
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 aa98ddfb4..d2b6b74d3 100755
--- a/collectstats.pl
+++ b/collectstats.pl
@@ -321,7 +321,7 @@ sub regenerate_stats {
return;
}
- if (open DATA, ">$file") {
+ if (open DATA, ">", $file) {
my $fields = join('|', ('DATE', @statuses, @resolutions));
print DATA <<FIN;
# Bugzilla Daily Bug Stats