Mercurial > hg
diff 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 |
line wrap: on
line diff
--- a/mercurial/templates/rss/filelogentry.tmpl Fri Feb 01 15:14:05 2013 -0600 +++ b/mercurial/templates/rss/filelogentry.tmpl Fri Feb 01 20:43:35 2013 +0100 @@ -1,6 +1,6 @@ <item> <title>{desc|strip|firstline|strip|escape}</title> - <link>{urlbase}{url}log{node|short}/{file|urlescape}</link> + <link>{urlbase}{url|urlescape}log{node|short}/{file|urlescape}</link> <description><![CDATA[{desc|strip|escape|addbreaks|nonempty}]]></description> <author>{author|obfuscate}</author> <pubDate>{date|rfc822date}</pubDate>