You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@roller.apache.org by ag...@apache.org on 2007/02/23 01:13:28 UTC
svn commit: r510728 - in
/incubator/roller/trunk/apps/planet/web/WEB-INF/velocity: group-atom.vm
opml.vm
Author: agilliland
Date: Thu Feb 22 16:13:27 2007
New Revision: 510728
URL: http://svn.apache.org/viewvc?view=rev&rev=510728
Log:
some fixes for proper xml escaping in templates.
Modified:
incubator/roller/trunk/apps/planet/web/WEB-INF/velocity/group-atom.vm
incubator/roller/trunk/apps/planet/web/WEB-INF/velocity/opml.vm
Modified: incubator/roller/trunk/apps/planet/web/WEB-INF/velocity/group-atom.vm
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/apps/planet/web/WEB-INF/velocity/group-atom.vm?view=diff&rev=510728&r1=510727&r2=510728
==============================================================================
--- incubator/roller/trunk/apps/planet/web/WEB-INF/velocity/group-atom.vm (original)
+++ incubator/roller/trunk/apps/planet/web/WEB-INF/velocity/group-atom.vm Thu Feb 22 16:13:27 2007
@@ -27,10 +27,10 @@
#set($entries = $model.pager.items)
#foreach($entry in $entries)
<entry>
- <id>$entry.permalink</id>
+ <id>$utils.escapeXML($entry.permalink)</id>
<title type="html">$utils.escapeXML($entry.title)</title>
- <author><name>$entry.author</name></author>
- <link rel="alternate" type="text/html" href="$entry.permalink"/>
+ <author><name>$utils.escapeXML($entry.author)</name></author>
+ <link rel="alternate" type="text/html" href="$utils.escapeXML($entry.permalink)"/>
<published>$utils.formatIso8601Date($entry.published)</published>
<updated>$utils.formatIso8601Date($entry.published)</updated>
<category term="$utils.escapeXML($entry.category.name)" label="$utils.escapeXML($entry.category.name)" />
Modified: incubator/roller/trunk/apps/planet/web/WEB-INF/velocity/opml.vm
URL: http://svn.apache.org/viewvc/incubator/roller/trunk/apps/planet/web/WEB-INF/velocity/opml.vm?view=diff&rev=510728&r1=510727&r2=510728
==============================================================================
--- incubator/roller/trunk/apps/planet/web/WEB-INF/velocity/opml.vm (original)
+++ incubator/roller/trunk/apps/planet/web/WEB-INF/velocity/opml.vm Thu Feb 22 16:13:27 2007
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding='utf-8'?>
<opml version="1.1">
<head>
- <title>Subscriptions list for $model.group.title</title>
+ <title>Subscriptions list for $utils.escapeXML($model.group.title)</title>
<dateCreated>$utils.formatRfc822Date($utils.now)</dateCreated>
<dateModified>$utils.formatRfc822Date($utils.now)</dateModified>
<ownerName>$model.planet.handle</ownerName>
@@ -11,9 +11,9 @@
<body>
<outline>
#foreach($sub in $model.group.subscriptions)
- <outline text="$sub.title"
- xmlUrl="$sub.feedURL"
- htmlUrl="$sub.siteURL" />
+ <outline text="$utils.escapeXML($sub.title)"
+ xmlUrl="$utils.escapeXML($sub.feedURL)"
+ htmlUrl="$utils.escapeXML($sub.siteURL)" />
#end
</outline>
</body>