summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4e8c09a)
raw | patch | inline | side by side (parent: 4e8c09a)
author | Kay Sievers <kay.sievers@suse.de> | |
Wed, 7 Dec 2005 15:10:01 +0000 (16:10 +0100) | ||
committer | Kay Sievers <kay.sievers@suse.de> | |
Wed, 7 Dec 2005 15:10:01 +0000 (16:10 +0100) |
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
gitweb.cgi | patch | blob | history |
diff --git a/gitweb.cgi b/gitweb.cgi
index 9222ca0fe7a4b5863badb765a3e29a53b812764d..1f5a409bf1fefc3d3fcaab8a3b17c25899a42d28 100755 (executable)
--- a/gitweb.cgi
+++ b/gitweb.cgi
if ($i-- > 0) {
my $ref = "";
if (defined $refs->{$commit}) {
- $ref = " <span class=\"tag\">$refs->{$commit}</span>";
+ $ref = " <span class=\"tag\">" . esc_html($refs->{$commit}) . "</span>";
}
print "<td><i>$co{'age_string'}</i></td>\n" .
"<td><i>" . esc_html(chop_str($co{'author_name'}, 10)) . "</i></td>\n" .
close $fd or die_error(undef, "Reading tree failed.");
$/ = "\n";
+ my $refs = read_info_ref();
+ my $ref = "";
+ if (defined $refs->{$hash_base}) {
+ $ref = " <span class=\"tag\">" . esc_html($refs->{$hash_base}) . "</span>";
+ }
git_header_html();
my $base_key = "";
my $base = "";
"<br/><br/>\n" .
"</div>\n";
print "<div>\n" .
- $cgi->a({-href => "$my_uri?" . esc_param("p=$project;a=commit;h=$hash_base"), -class => "title"}, esc_html($co{'title'})) . "\n" .
+ $cgi->a({-href => "$my_uri?" . esc_param("p=$project;a=commit;h=$hash_base"), -class => "title"}, esc_html($co{'title'}) . $ref) . "\n" .
"</div>\n";
} else {
print "<div class=\"page_nav\">\n";
my $commit = $revlist[$i];
my $ref = "";
if (defined $refs->{$commit}) {
- $ref = " <span class=\"tag\">$refs->{$commit}</span>";
+ $ref = " <span class=\"tag\">" . esc_html($refs->{$commit}) . "</span>";
}
my %co = git_read_commit($commit);
next if !%co;
if ($hash =~ m/^[0-9a-fA-F]{40}$/) {
$expires = "+1d";
}
+ my $refs = read_info_ref();
+ my $ref = "";
+ if (defined $refs->{$hash}) {
+ $ref = " <span class=\"tag\">" . esc_html($refs->{$hash}) . "</span>";
+ }
git_header_html(undef, $expires);
print "<div class=\"page_nav\">\n" .
$cgi->a({-href => "$my_uri?" . esc_param("p=$project;a=summary")}, "summary") .
"<br/><br/></div>\n";
if (defined $co{'parent'}) {
print "<div>\n" .
- $cgi->a({-href => "$my_uri?" . esc_param("p=$project;a=commitdiff;h=$hash"), -class => "title"}, esc_html($co{'title'})) . "\n" .
+ $cgi->a({-href => "$my_uri?" . esc_param("p=$project;a=commitdiff;h=$hash"), -class => "title"}, esc_html($co{'title'}) . $ref) . "\n" .
"</div>\n";
} else {
print "<div>\n" .
if ($hash =~ m/^[0-9a-fA-F]{40}$/) {
$expires = "+1d";
}
+ my $refs = read_info_ref();
+ my $ref = "";
+ if (defined $refs->{$hash}) {
+ $ref = " <span class=\"tag\">" . esc_html($refs->{$hash}) . "</span>";
+ }
git_header_html(undef, $expires);
print "<div class=\"page_nav\">\n" .
$cgi->a({-href => "$my_uri?" . esc_param("p=$project;a=summary")}, "summary") .
print $cgi->a({-href => "$my_uri?" . esc_param("p=$project;a=commitdiff_plain;h=$hash;hp=$hash_parent")}, "plain") . "\n" .
"</div>\n";
print "<div>\n" .
- $cgi->a({-href => "$my_uri?" . esc_param("p=$project;a=commit;h=$hash"), -class => "title"}, esc_html($co{'title'})) . "\n" .
+ $cgi->a({-href => "$my_uri?" . esc_param("p=$project;a=commit;h=$hash"), -class => "title"}, esc_html($co{'title'}) . $ref) . "\n" .
"</div>\n";
print "<div class=\"page_body\">\n";
my $comment = $co{'comment'};
}
my $ref = "";
if (defined $refs->{$commit}) {
- $ref = " <span class=\"tag\">$refs->{$commit}</span>";
+ $ref = " <span class=\"tag\">" . esc_html($refs->{$commit}) . "</span>";
}
if ($alternate) {
print "<tr class=\"dark\">\n";
my $commit = $revlist[$i];
my $ref = "";
if (defined $refs->{$commit}) {
- $ref = " <span class=\"tag\">$refs->{$commit}</span>";
+ $ref = " <span class=\"tag\">" . esc_html($refs->{$commit}) . "</span>";
}
my %co = git_read_commit($commit);
my %ad = date_str($co{'author_epoch'});