git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] gitweb: Escape long title for link tooltips
@ 2006-09-27  2:38 Yasushi SHOJI
  2006-09-27  3:06 ` Yasushi SHOJI
  0 siblings, 1 reply; 7+ messages in thread
From: Yasushi SHOJI @ 2006-09-27  2:38 UTC (permalink / raw)
  To: git

This is a simple one liner to fix the bug not escaping title string
for link tooltips.

This is not crucial if the commit message is all in ASCII, however, if
you decide to use other encoding, such as UTF-8, tooltips ain't
readable any more.

Signed-off-by: Yasushi SHOJI <yashi@atmark-techno.com>
---
 gitweb/gitweb.perl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 66be619..67f49df 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -617,7 +617,7 @@ sub format_subject_html {
 
 	if (length($short) < length($long)) {
 		return $cgi->a({-href => $href, -class => "list subject",
-		                -title => $long},
+		                -title => esc_html($long)},
 		       esc_html($short) . $extra);
 	} else {
 		return $cgi->a({-href => $href, -class => "list subject"},
-- 
1.4.2.1.g83915

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-10-06  8:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-27  2:38 [PATCH] gitweb: Escape long title for link tooltips Yasushi SHOJI
2006-09-27  3:06 ` Yasushi SHOJI
2006-09-27  3:04   ` [PATCH] gitweb: Decode " Yasushi SHOJI
2006-10-01 16:45     ` Jakub Narebski
2006-10-01 21:33       ` Yasushi SHOJI
2006-10-01 21:49         ` Jakub Narebski
2006-10-06  8:54         ` Jakub Narebski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).