gitweb: Use chop_and_escape_str in more places.
Signed-off-by: David Symonds <dsymonds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
David Symonds committed
Oct 23, 2007 at 11:31 UTC
d3cd249565b6457d5845e7396530db7685a970bb
1 file changed
+3
-3
gitweb/gitweb.perl
+3
-3
@@ -3412,7 +3412,7 @@ sub git_project_list_body {
3412
"<td>" . $cgi->a({-href => href(project=>$pr->{'path'}, action=>"summary"),
3413
-class => "list", -title => $pr->{'descr_long'}},
3414
esc_html($pr->{'descr'})) . "</td>\n" .
3415
- "<td><i>" . esc_html(chop_str($pr->{'owner'}, 15)) . "</i></td>\n";
3415
+ "<td><i>" . chop_and_escape_str($pr->{'owner'}, 15) . "</i></td>\n";
3416
print "<td class=\"". age_class($pr->{'age'}) . "\">" .
3417
(defined $pr->{'age_string'} ? $pr->{'age_string'} : "No commits") . "</td>\n" .
3418
"<td class=\"link\">" .
@@ -3667,7 +3667,7 @@ sub git_search_grep_body {
3667
"<td><i>" . $author . "</i></td>\n" .
3668
"<td>" .
3669
$cgi->a({-href => href(action=>"commit", hash=>$co{'id'}), -class => "list subject"},
3670
- esc_html(chop_str($co{'title'}, 50)) . "<br/>");
3670
+ chop_and_escape_str($co{'title'}, 50) . "<br/>");
3671
my $comment = $co{'comment'};
3672
foreach my $line (@$comment) {
3673
if ($line =~ m/^(.*)($search_regexp)(.*)$/i) {
@@ -5183,7 +5183,7 @@ sub git_search {
5183
"<td>" .
5184
$cgi->a({-href => href(action=>"commit", hash=>$co{'id'}),
5185
-class => "list subject"},
5186
- esc_html(chop_str($co{'title'}, 50)) . "<br/>");
5186
+ chop_and_escape_str($co{'title'}, 50) . "<br/>");
5187
while (my $setref = shift @files) {
5188
my %set = %$setref;
5189
print $cgi->a({-href => href(action=>"blob", hash_base=>$co{'id'},