From: dmose%mozilla.org <> Date: Thu, 30 Mar 2000 04:10:26 +0000 (+0000) Subject: Fixing a warning which happened if $ENV{'HTTP_USER_AGENT'} wasn't defined. X-Git-Tag: bugzilla-2.12~321 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae2fc61bacb96a91978cc72fd860a5b6beb33903;p=thirdparty%2Fbugzilla.git Fixing a warning which happened if $ENV{'HTTP_USER_AGENT'} wasn't defined. --- diff --git a/buglist.cgi b/buglist.cgi index 16b9ba9f9e..5171e7fee6 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,