From: Matt Selsky Date: Sun, 3 Jun 2012 12:59:40 +0000 (+0200) Subject: Bug 297553: Enable serverpush for Opera X-Git-Tag: bugzilla-4.3.2~53 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=564e1b0a6e996ac64c370a2a320e98c68edef10a;p=thirdparty%2Fbugzilla.git Bug 297553: Enable serverpush for Opera r/a=LpSolit --- diff --git a/buglist.cgi b/buglist.cgi index f7498483a2..0f9e8176aa 100755 --- a/buglist.cgi +++ b/buglist.cgi @@ -109,11 +109,12 @@ my $format = $template->get_format("list/list", scalar $cgi->param('format'), # http://www.browsercaps.org used as source of compatible browsers. # Safari (WebKit) does not support it, despite a UA that says otherwise (bug 188712) # MSIE 5+ supports it on Mac (but not on Windows) (bug 190370) +# Opera supports it. # my $serverpush = $format->{'extension'} eq "html" && exists $ENV{'HTTP_USER_AGENT'} - && $ENV{'HTTP_USER_AGENT'} =~ /Mozilla.[3-9]/ + && $ENV{'HTTP_USER_AGENT'} =~ /(Mozilla.[3-9]|Opera)/ && (($ENV{'HTTP_USER_AGENT'} !~ /[Cc]ompatible/) || ($ENV{'HTTP_USER_AGENT'} =~ /MSIE 5.*Mac_PowerPC/)) && $ENV{'HTTP_USER_AGENT'} !~ /WebKit/ && !defined($cgi->param('serverpush'))