diff mercurial/templates/gitweb/footer.tmpl @ 18526:9409aeaafdc1 stable

hgweb: urlescape all urls, HTML escape repo/tag/branch/... names Without this, repository paths or names containing e.g. & characters or html tags yielded strange results, possibly allowing cross-site scripting attacks.
author Thomas Arendsen Hein <thomas@intevation.de>
date Fri, 01 Feb 2013 20:43:35 +0100
parents b24e5a708fad
children eb7de21b15be
line wrap: on
line diff
--- a/mercurial/templates/gitweb/footer.tmpl	Fri Feb 01 15:14:05 2013 -0600
+++ b/mercurial/templates/gitweb/footer.tmpl	Fri Feb 01 20:43:35 2013 +0100
@@ -2,8 +2,8 @@
 <div class="page_footer">
 <div class="page_footer_text">{repo|escape}</div>
 <div class="rss_logo">
-<a href="{url}rss-log">RSS</a>
-<a href="{url}atom-log">Atom</a>
+<a href="{url|urlescape}rss-log">RSS</a>
+<a href="{url|urlescape}atom-log">Atom</a>
 </div>
 <br />
 {motd}