diff --git a/webtools/bonsai/cvsblame.cgi b/webtools/bonsai/cvsblame.cgi index d1ba1e446c6..fd40de277e6 100755 --- a/webtools/bonsai/cvsblame.cgi +++ b/webtools/bonsai/cvsblame.cgi @@ -76,21 +76,6 @@ my $SubHead = ''; my @src_roots = getRepositoryList(); -# Layers are supported only by Netscape 4. -# The DOM standards are supported by Mozilla and IE 5 or above. It should -# also be supported by any browser claiming "Mozilla/5" or above. -my ($use_layers, $use_dom) = 0; -if (defined $ENV{HTTP_USER_AGENT}) { - my $user_agent = $ENV{HTTP_USER_AGENT}; - if ($user_agent =~ m@^Mozilla/4.@ && $user_agent !~ /MSIE/) { - $use_layers = 1; - } elsif ($user_agent =~ m@MSIE (\d+)@) { - $use_dom = 1 if $1 >= 5; - } elsif ($user_agent =~ m@^Mozilla/(\d+)@) { - $use_dom = 1 if $1 >= 5; - } -} - # Init sanitiazation source checker # my $sanitization_dictionary = $::FORM{sanitize}; @@ -255,8 +240,8 @@ my $graph_cell = Param('cvsgraph') ? <<"--endquote--" : ""; --endquote-- print " ("; print "$browse_revtag:" unless $browse_revtag eq 'HEAD'; print $revision if $revision; @@ -373,8 +358,8 @@ foreach $revision (@::revision_map) $output .= "\n"; -if ($use_layers || $use_dom) { +if ($::use_layers || $::use_dom) { # Write out cvs log messages as a JS variables # or hidden
's - print qq|"; } @@ -459,8 +444,8 @@ sub print_top { print "CVS Blame $title_text"; - print <<__TOP__ if $use_layers; -