summaryrefslogtreecommitdiffstats
path: root/Bugzilla/UserAgent.pm
diff options
context:
space:
mode:
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 6589930ce..07b05b99c 100644
--- a/Bugzilla/UserAgent.pm
+++ b/Bugzilla/UserAgent.pm
@@ -172,7 +172,7 @@ use constant OS_MAP => (
);
sub detect_platform {
- my $userAgent = $ENV{'HTTP_USER_AGENT'};
+ my $userAgent = $ENV{'HTTP_USER_AGENT'} || '';
my @detected;
my $iterator = natatime(2, PLATFORMS_MAP);
while (my($re, $ra) = $iterator->()) {