]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Fixing a warning which happened if $ENV{'HTTP_USER_AGENT'} wasn't defined.
authordmose%mozilla.org <>
Thu, 30 Mar 2000 04:10:26 +0000 (04:10 +0000)
committerdmose%mozilla.org <>
Thu, 30 Mar 2000 04:10:26 +0000 (04:10 +0000)
buglist.cgi

index 16b9ba9f9e7f991959aa36429d1c560f299d4b69..5171e7fee6dd2b05357bd6f0fcdba8e7ee7915ee 100755 (executable)
@@ -738,7 +738,7 @@ OK, you have a new query named <code>$name</code>
 }
 
 
-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,