From: Junio C Hamano Date: Sat, 24 Mar 2007 06:29:37 +0000 (-0700) Subject: Merge branch 'maint' X-Git-Tag: v1.5.1-rc2~15 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/b08bbae7e1676e5a47fa9054e268ff14ee819a3a?ds=inline;hp=-c Merge branch 'maint' * maint: gitweb: Fix "next" link in commit view --- b08bbae7e1676e5a47fa9054e268ff14ee819a3a diff --combined gitweb/gitweb.perl index 27b5970bca,ea39d7e98b..5214050a88 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@@ -591,7 -591,7 +591,7 @@@ sub esc_html ($;%) my %opts = @_; $str = to_utf8($str); - $str = escapeHTML($str); + $str = $cgi->escapeHTML($str); if ($opts{'-nbsp'}) { $str =~ s/ / /g; } @@@ -605,7 -605,7 +605,7 @@@ sub esc_path my %opts = @_; $str = to_utf8($str); - $str = escapeHTML($str); + $str = $cgi->escapeHTML($str); if ($opts{'-nbsp'}) { $str =~ s/ / /g; } @@@ -1974,17 -1974,17 +1974,17 @@@ sub git_print_page_path $fullname .= ($fullname ? '/' : '') . $dir; print $cgi->a({-href => href(action=>"tree", file_name=>$fullname, hash_base=>$hb), - -title => esc_html($fullname)}, esc_path($dir)); + -title => $fullname}, esc_path($dir)); print " / "; } if (defined $type && $type eq 'blob') { print $cgi->a({-href => href(action=>"blob_plain", file_name=>$file_name, hash_base=>$hb), - -title => esc_html($name)}, esc_path($basename)); + -title => $name}, esc_path($basename)); } elsif (defined $type && $type eq 'tree') { print $cgi->a({-href => href(action=>"tree", file_name=>$file_name, hash_base=>$hb), - -title => esc_html($name)}, esc_path($basename)); + -title => $name}, esc_path($basename)); print " / "; } else { print esc_path($basename); @@@ -3719,7 -3719,7 +3719,7 @@@ sub git_commit $formats_nav .= '(merge: ' . join(' ', map { - $cgi->a({-href => href(action=>"commitdiff", + $cgi->a({-href => href(action=>"commit", hash=>$_)}, esc_html(substr($_, 0, 7))); } @$parents ) .