Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
18525:462579cbad45 | 18526:9409aeaafdc1 |
---|---|
1 <script type="text/javascript">process_dates()</script> | 1 <script type="text/javascript">process_dates()</script> |
2 <div class="page_footer"> | 2 <div class="page_footer"> |
3 <div class="page_footer_text">{repo|escape}</div> | 3 <div class="page_footer_text">{repo|escape}</div> |
4 <div class="rss_logo"> | 4 <div class="rss_logo"> |
5 <a href="{url}rss-log">RSS</a> | 5 <a href="{url|urlescape}rss-log">RSS</a> |
6 <a href="{url}atom-log">Atom</a> | 6 <a href="{url|urlescape}atom-log">Atom</a> |
7 </div> | 7 </div> |
8 <br /> | 8 <br /> |
9 {motd} | 9 {motd} |
10 </div> | 10 </div> |
11 </body> | 11 </body> |