summaryrefslogtreecommitdiffstats
path: root/Bugzilla/UserAgent.pm
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2012-07-02 11:09:44 +0200
committerByron Jones <bjones@mozilla.com>2012-07-02 11:09:44 +0200
commitbe3d775cdec8af249a40b1b63a87305fe6cbf7fc (patch)
tree47a8c403cc0c27449c3de947120b6173c0c224d9 /Bugzilla/UserAgent.pm
parent8faca0e7ced0666c3929f93fdfd023ef60bf68ca (diff)
downloadbugzilla-be3d775cdec8af249a40b1b63a87305fe6cbf7fc.tar.gz
bugzilla-be3d775cdec8af249a40b1b63a87305fe6cbf7fc.tar.xz
Bug 770104: "Use of uninitialized value in pattern match" with missing user-agent
Diffstat (limited to 'Bugzilla/UserAgent.pm')
-rw-r--r--Bugzilla/UserAgent.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/UserAgent.pm b/Bugzilla/UserAgent.pm
index 7a5265fc3..6589930ce 100644
--- a/Bugzilla/UserAgent.pm
+++ b/Bugzilla/UserAgent.pm
@@ -184,7 +184,7 @@ sub detect_platform {
}
sub detect_op_sys {
- my $userAgent = $ENV{'HTTP_USER_AGENT'};
+ my $userAgent = $ENV{'HTTP_USER_AGENT'} || '';
my @detected;
my $iterator = natatime(2, OS_MAP);
while (my($re, $ra) = $iterator->()) {