Code

gitweb: Show project descriptions with utf-8 characters in project list correctly
authorJakub Narebski <jnareb@gmail.com>
Sun, 30 Jul 2006 15:47:22 +0000 (17:47 +0200)
committerJunio C Hamano <junkio@cox.net>
Mon, 31 Jul 2006 01:40:49 +0000 (18:40 -0700)
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
gitweb/gitweb.cgi

index 79275f38d36f30754fbe0f37f92dc2549e279d20..673db1f6398f9e2d986cc9a4b8485ccfef0440c1 100755 (executable)
@@ -958,7 +958,7 @@ sub git_project_list {
                }
                $alternate ^= 1;
                print "<td>" . $cgi->a({-href => "$my_uri?" . esc_param("p=$pr->{'path'};a=summary"), -class => "list"}, esc_html($pr->{'path'})) . "</td>\n" .
-                     "<td>$pr->{'descr'}</td>\n" .
+                     "<td>" . esc_html($pr->{'descr'}) . "</td>\n" .
                      "<td><i>" . chop_str($pr->{'owner'}, 15) . "</i></td>\n";
                print "<td class=\"". age_class($pr->{'commit'}{'age'}) . "\">" . $pr->{'commit'}{'age_string'} . "</td>\n" .
                      "<td class=\"link\">" .