From ae2fc61bacb96a91978cc72fd860a5b6beb33903 Mon Sep 17 00:00:00 2001 From: "dmose%mozilla.org" <> Date: Thu, 30 Mar 2000 04:10:26 +0000 Subject: Fixing a warning which happened if $ENV{'HTTP_USER_AGENT'} wasn't defined. --- buglist.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'buglist.cgi') diff --git a/buglist.cgi b/buglist.cgi index 16b9ba9f9..5171e7fee 100755 --- a/buglist.cgi +++ b/buglist.cgi @@ -738,7 +738,7 @@ OK, you have a new query named $name } -if ($ENV{'HTTP_USER_AGENT'} =~ /Mozilla.[3-9]/ && $ENV{'HTTP_USER_AGENT'} !~ /[Cc]ompatible/ ) { +if (exists $ENV{'HTTP_USER_AGENT'} && $ENV{'HTTP_USER_AGENT'} =~ /Mozilla.[3-9]/ && $ENV{'HTTP_USER_AGENT'} !~ /[Cc]ompatible/ ) { # Search for real Netscape 3 and up. http://www.browsercaps.org used as source of # browsers compatbile with server-push. It's a Netscape hack, incompatbile # with MSIE and Lynx (at least). Even Communicator 4.51 has bugs with it, -- cgit v1.2.3-24-g4f1b