From be3d775cdec8af249a40b1b63a87305fe6cbf7fc Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Mon, 2 Jul 2012 17:09:44 +0800 Subject: Bug 770104: "Use of uninitialized value in pattern match" with missing user-agent --- Bugzilla/UserAgent.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Bugzilla') 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->()) { -- cgit v1.2.3-24-g4f1b