\n";
@@ -3409,7 +3396,7 @@ sub git_project_list_body {
"
" . $cgi->a({-href => href(project=>$pr->{'path'}, action=>"summary"),
-class => "list", -title => $pr->{'descr_long'}},
esc_html($pr->{'descr'})) . " | \n" .
- "
" . chop_str($pr->{'owner'}, 15) . " | \n";
+ "
" . esc_html(chop_str($pr->{'owner'}, 15)) . " | \n";
print "
{'age'}) . "\">" .
(defined $pr->{'age_string'} ? $pr->{'age_string'} : "No commits") . " | \n" .
"
" .
@@ -3451,9 +3438,15 @@ sub git_shortlog_body {
print " | \n";
}
$alternate ^= 1;
+ my $author = chop_str($co{'author_name'}, 10);
+ if ($author ne $co{'author_name'}) {
+ $author = "" . esc_html($author) . "";
+ } else {
+ $author = esc_html($author);
+ }
# git_summary() used print "| $co{'age_string'} | \n" .
print "$co{'age_string_date'} | \n" .
- "" . esc_html(chop_str($co{'author_name'}, 10)) . " | \n" .
+ "" . $author . " | \n" .
"";
print format_subject_html($co{'title'}, $co{'title_short'},
href(action=>"commit", hash=>$commit), $ref);
@@ -3501,9 +3494,15 @@ sub git_history_body {
print " |
\n";
}
$alternate ^= 1;
+ # shortlog uses chop_str($co{'author_name'}, 10)
+ my $author = chop_str($co{'author_name'}, 15, 3);
+ if ($author ne $co{'author_name'}) {
+ "" . esc_html($author) . "";
+ } else {
+ $author = esc_html($author);
+ }
print "| $co{'age_string_date'} | \n" .
- # shortlog uses chop_str($co{'author_name'}, 10)
- "" . esc_html(chop_str($co{'author_name'}, 15, 3)) . " | \n" .
+ "" . $author . " | \n" .
"";
# originally git_history used chop_str($co{'title'}, 50)
print format_subject_html($co{'title'}, $co{'title_short'},
@@ -3657,8 +3656,14 @@ sub git_search_grep_body {
print " |
\n";
}
$alternate ^= 1;
+ my $author = chop_str($co{'author_name'}, 15, 5);
+ if ($author ne $co{'author_name'}) {
+ $author = "" . esc_html($author) . "";
+ } else {
+ $author = esc_html($author);
+ }
print "| $co{'age_string_date'} | \n" .
- "" . esc_html(chop_str($co{'author_name'}, 15, 5)) . " | \n" .
+ "" . $author . " | \n" .
"" .
$cgi->a({-href => href(action=>"commit", hash=>$co{'id'}), -class => "list subject"},
esc_html(chop_str($co{'title'}, 50)) . " ");
@@ -3785,7 +3790,7 @@ sub git_summary {
print " \n";
print "\n" .
"| description | " . esc_html($descr) . " | \n" .
- "| owner | $owner | \n";
+ "| owner | " . esc_html($owner) . " | \n";
if (defined $cd{'rfc2822'}) {
print "| last change | $cd{'rfc2822'} | \n";
}
@@ -5171,8 +5176,14 @@ sub git_search {
print "\n";
}
$alternate ^= 1;
+ my $author = chop_str($co{'author_name'}, 15, 5);
+ if ($author ne $co{'author_name'}) {
+ $author = "" . esc_html($author) . "";
+ } else {
+ $author = esc_html($author);
+ }
print "| $co{'age_string_date'} | \n" .
- "" . esc_html(chop_str($co{'author_name'}, 15, 5)) . " | \n" .
+ "" . $author . " | \n" .
"" .
$cgi->a({-href => href(action=>"commit", hash=>$co{'id'}),
-class => "list subject"},
@@ -5353,7 +5364,7 @@ sub git_feed {
# log/feed of current (HEAD) branch, log of given branch, history of file/directory
my $head = $hash || 'HEAD';
- my @commitlist = parse_commits($head, 150);
+ my @commitlist = parse_commits($head, 150, 0, undef, $file_name);
my %latest_commit;
my %latest_date;
| |