summaryrefslogtreecommitdiffstats
path: root/buglist.cgi
diff options
context:
space:
mode:
authordmose%mozilla.org <>2000-03-30 06:10:26 +0200
committerdmose%mozilla.org <>2000-03-30 06:10:26 +0200
commitae2fc61bacb96a91978cc72fd860a5b6beb33903 (patch)
treead88cd600b4842c68dca0019d5fcbfa3a680550f /buglist.cgi
parent581a4a2e7bb4a248d789855d42eead48cc28ec1e (diff)
downloadbugzilla-ae2fc61bacb96a91978cc72fd860a5b6beb33903.tar.gz
bugzilla-ae2fc61bacb96a91978cc72fd860a5b6beb33903.tar.xz
Fixing a warning which happened if $ENV{'HTTP_USER_AGENT'} wasn't defined.
Diffstat (limited to 'buglist.cgi')
-rwxr-xr-xbuglist.cgi2
1 files changed, 1 insertions, 1 deletions
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 <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,