comparison mercurial/templates/atom/error.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 f91e5630ce7e
children 4b0fc75f9403
comparison
equal deleted inserted replaced
18525:462579cbad45 18526:9409aeaafdc1
1 {header} 1 {header}
2 <!-- Error --> 2 <!-- Error -->
3 <id>{urlbase}{url}</id> 3 <id>{urlbase}{url|urlescape}</id>
4 <link rel="self" href="{urlbase}{url}atom-log"/> 4 <link rel="self" href="{urlbase}{url|urlescape}atom-log"/>
5 <link rel="alternate" href="{urlbase}{url}"/> 5 <link rel="alternate" href="{urlbase}{url|urlescape}"/>
6 <title>Error</title> 6 <title>Error</title>
7 <updated>1970-01-01T00:00:00+00:00</updated> 7 <updated>1970-01-01T00:00:00+00:00</updated>
8 <entry> 8 <entry>
9 <title>Error</title> 9 <title>Error</title>
10 <id>http://mercurial.selenic.com/#error</id> 10 <id>http://mercurial.selenic.com/#error</id>