mercurial/templates/atom/error.tmpl
author Thomas Arendsen Hein <thomas@intevation.de>
Fri, 01 Feb 2013 20:43:35 +0100
branchstable
changeset 18526 9409aeaafdc1
parent 9999 f91e5630ce7e
child 26421 4b0fc75f9403
permissions -rw-r--r--
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.

{header}
 <!-- Error -->
 <id>{urlbase}{url|urlescape}</id>
 <link rel="self" href="{urlbase}{url|urlescape}atom-log"/>
 <link rel="alternate" href="{urlbase}{url|urlescape}"/>
 <title>Error</title>
 <updated>1970-01-01T00:00:00+00:00</updated>
 <entry>
  <title>Error</title>
  <id>http://mercurial.selenic.com/#error</id>
  <author>
    <name>mercurial</name>
  </author>
  <updated>1970-01-01T00:00:00+00:00</updated>
  <content type="text">{error|escape}</content>
 </entry>
</feed>