comparison mercurial/templates/rss/filelogentry.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 a2dc8819bb0d
children 16352b34e32e
comparison
equal deleted inserted replaced
18525:462579cbad45 18526:9409aeaafdc1
1 <item> 1 <item>
2 <title>{desc|strip|firstline|strip|escape}</title> 2 <title>{desc|strip|firstline|strip|escape}</title>
3 <link>{urlbase}{url}log{node|short}/{file|urlescape}</link> 3 <link>{urlbase}{url|urlescape}log{node|short}/{file|urlescape}</link>
4 <description><![CDATA[{desc|strip|escape|addbreaks|nonempty}]]></description> 4 <description><![CDATA[{desc|strip|escape|addbreaks|nonempty}]]></description>
5 <author>{author|obfuscate}</author> 5 <author>{author|obfuscate}</author>
6 <pubDate>{date|rfc822date}</pubDate> 6 <pubDate>{date|rfc822date}</pubDate>
7 </item> 7 </item>