From: Jürgen Kreileder Date: Sat, 17 Dec 2011 09:22:22 +0000 (+0100) Subject: gitweb: esc_html() site name for title in OPML X-Git-Tag: v1.7.8.3~1^2~2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5d7910569b2caeb65354d17b26359cb235026b39;p=git.git gitweb: esc_html() site name for title in OPML This escapes the site name in OPML (XML uses the same escaping rules as HTML). Also fixes encoding issues because esc_html() uses to_utf8(). Signed-off-by: Jürgen Kreileder Acked-by: Jakub Narębski Signed-off-by: Junio C Hamano --- diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index b07703253..a9f39d59c 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -7700,11 +7700,12 @@ sub git_opml { -charset => 'utf-8', -content_disposition => 'inline; filename="opml.xml"'); + my $title = esc_html($site_name); print < - $site_name OPML Export + $title OPML Export