gitweb: escape tag comments
I have a tag with a comment which includes an & character. Firefox wouldn't display my gitweb summary page due to malformed XML. This solves the problem. Signed-off-by: Daniel Drake <dsd@gentoo.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
09f5dc406a
commit
143c89b003
@ -1138,7 +1138,7 @@ sub git_summary {
|
|||||||
"</td>\n" .
|
"</td>\n" .
|
||||||
"<td>";
|
"<td>";
|
||||||
if (defined($comment)) {
|
if (defined($comment)) {
|
||||||
print $cgi->a({-class => "list", -href => "$my_uri?" . esc_param("p=$project;a=tag;h=$tag{'id'}")}, $comment);
|
print $cgi->a({-class => "list", -href => "$my_uri?" . esc_param("p=$project;a=tag;h=$tag{'id'}")}, esc_html($comment));
|
||||||
}
|
}
|
||||||
print "</td>\n" .
|
print "</td>\n" .
|
||||||
"<td class=\"link\">";
|
"<td class=\"link\">";
|
||||||
|
Loading…
Reference in New Issue
Block a user