annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7749
f32af51aaee5 hgweb: add atom error template
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
1 {header}
f32af51aaee5 hgweb: add atom error template
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
2 <!-- Error -->
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 9999
diff changeset
3 <id>{urlbase}{url|urlescape}</id>
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 9999
diff changeset
4 <link rel="self" href="{urlbase}{url|urlescape}atom-log"/>
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 9999
diff changeset
5 <link rel="alternate" href="{urlbase}{url|urlescape}"/>
7749
f32af51aaee5 hgweb: add atom error template
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
6 <title>Error</title>
f32af51aaee5 hgweb: add atom error template
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
7 <updated>1970-01-01T00:00:00+00:00</updated>
f32af51aaee5 hgweb: add atom error template
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
8 <entry>
f32af51aaee5 hgweb: add atom error template
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
9 <title>Error</title>
8936
1de6e7e1bb9f change wiki/bts URLs to point to new hostname
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 7749
diff changeset
10 <id>http://mercurial.selenic.com/#error</id>
7749
f32af51aaee5 hgweb: add atom error template
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
11 <author>
f32af51aaee5 hgweb: add atom error template
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
12 <name>mercurial</name>
f32af51aaee5 hgweb: add atom error template
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
13 </author>
f32af51aaee5 hgweb: add atom error template
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
14 <updated>1970-01-01T00:00:00+00:00</updated>
f32af51aaee5 hgweb: add atom error template
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
15 <content type="text">{error|escape}</content>
f32af51aaee5 hgweb: add atom error template
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
16 </entry>
f32af51aaee5 hgweb: add atom error template
Sune Foldager <cryo@cyanite.org>
parents:
diff changeset
17 </feed>