changeset 114:54ed5b4c2ad8

Escape tags + links by defaut
author Steve Kemp <steve@steve.org.uk>
date Thu, 13 Dec 2007 13:52:57 +0000
parents b296489d9ea1
children 02f239be7568
files themes/blog.steve.org.uk/entry.template themes/blog.steve.org.uk/index.template themes/blog.steve.org.uk/month.template themes/blog.steve.org.uk/tags.template
diffstat 4 files changed, 10 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/themes/blog.steve.org.uk/entry.template	Thu Dec 13 13:29:24 2007 +0000
+++ b/themes/blog.steve.org.uk/entry.template	Thu Dec 13 13:52:57 2007 +0000
@@ -55,7 +55,7 @@
   <div class="date"><!-- tmpl_var name='date' --></div>
   <div class="body"><!-- tmpl_var name='body' --></div>
   <!-- tmpl_if name='tags' -->
-  <div class="tags">Tags: <!-- tmpl_loop name='tags' --><a href="<!-- tmpl_var name='top' -->tags/<!-- tmpl_var name='tag' -->"><!-- tmpl_var name='tag' --></a><!-- tmpl_if name="__last__" -->.<!-- tmpl_else -->, <!-- /tmpl_if --><!-- /tmpl_loop --></div>
+  <div class="tags">Tags: <!-- tmpl_loop name='tags' --><a href="<!-- tmpl_var name='top' -->tags/<!-- tmpl_var name='tag' escape='html' -->"><!-- tmpl_var name='tag' escape='html' --></a><!-- tmpl_if name="__last__" -->.<!-- tmpl_else -->, <!-- /tmpl_if --><!-- /tmpl_loop --></div>
    <!-- /tmpl_if -->
   </div>
 
@@ -70,7 +70,7 @@
 <h2>Tags</h2>
 <ul>
 <!-- tmpl_loop name='tagcloud' -->
- <li><a href="<!-- tmpl_var name='top' -->tags/<!-- tmpl_var name='tag' -->"><!-- tmpl_var name='tag' --> (<!-- tmpl_var name='count' -->)</a></li>
+ <li><a href="<!-- tmpl_var name='top' -->tags/<!-- tmpl_var name='tag' escape='html' -->"><!-- tmpl_var name='tag' escape='html' --> (<!-- tmpl_var name='count' -->)</a></li>
 <!-- /tmpl_loop -->
 </ul>
 <!-- /tmpl_if -->
--- a/themes/blog.steve.org.uk/index.template	Thu Dec 13 13:29:24 2007 +0000
+++ b/themes/blog.steve.org.uk/index.template	Thu Dec 13 13:52:57 2007 +0000
@@ -53,7 +53,7 @@
  <td valign="top" width="60%" style="padding: 2px;">
  <!-- tmpl_loop name='entries' -->
  <div class="entry">
-  <div class="title"><a href="<!-- tmpl_var name='top' --><!-- tmpl_var name='link' -->"><!-- tmpl_var name='title' --></a></div>
+  <div class="title"><a href="<!-- tmpl_var name='top' --><!-- tmpl_var name='link' escape='html' -->"><!-- tmpl_var name='title' escape='html'--></a></div>
   <div class="date"><!-- tmpl_var name='date' --></div>
   <div class="body"><!-- tmpl_var name='body' --></div>
   <div class="tags">
@@ -64,7 +64,7 @@
    <!-- /tmpl_if -->
 
    <!-- tmpl_if name='tags' -->
-   Tags: <!-- tmpl_loop name='tags' --><a href="<!-- tmpl_var name='top' -->tags/<!-- tmpl_var name='tag' -->"><!-- tmpl_var name='tag' --></a><!-- tmpl_if name="__last__" -->.<!-- tmpl_else -->, <!-- /tmpl_if --><!-- /tmpl_loop --> 
+   Tags: <!-- tmpl_loop name='tags' --><a href="<!-- tmpl_var name='top' -->tags/<!-- tmpl_var name='tag' escape='html' -->"><!-- tmpl_var name='tag' escape='html' --></a><!-- tmpl_if name="__last__" -->.<!-- tmpl_else -->, <!-- /tmpl_if --><!-- /tmpl_loop --> 
   <!-- tmpl_else -->
     No tags
   <!-- /tmpl_if -->
@@ -82,7 +82,7 @@
 <h2>Tags</h2>
 <ul>
 <!-- tmpl_loop name='tagcloud' -->
- <li><a href="<!-- tmpl_var name='top' -->tags/<!-- tmpl_var name='tag' -->"><!-- tmpl_var name='tag' --> (<!-- tmpl_var name='count' -->)</a></li>
+ <li><a href="<!-- tmpl_var name='top' -->tags/<!-- tmpl_var name='tag' escape='html' -->"><!-- tmpl_var name='tag' escape='html' --> (<!-- tmpl_var name='count' -->)</a></li>
 <!-- /tmpl_loop -->
 </ul>
 <!-- /tmpl_if -->
--- a/themes/blog.steve.org.uk/month.template	Thu Dec 13 13:29:24 2007 +0000
+++ b/themes/blog.steve.org.uk/month.template	Thu Dec 13 13:52:57 2007 +0000
@@ -55,7 +55,7 @@
 <!-- tmpl_loop name='entries' -->
 <div class="entry">
  <div class="title">
- <a href="<!-- tmpl_var name='top' --><!-- tmpl_var name='link' -->"><!-- tmpl_var name='title' --></a>
+ <a href="<!-- tmpl_var name='top' --><!-- tmpl_var name='link' escape='html' -->"><!-- tmpl_var name='title' --></a>
  </div>
  <div class="date">
   <!-- tmpl_var name='date' -->
@@ -70,7 +70,7 @@
    <!-- /tmpl_if -->
 
  <!-- tmpl_if name='tags' -->
-  Tags: <!-- tmpl_loop name='tags' --><a href="<!-- tmpl_var name='top' -->tags/<!-- tmpl_var name='tag' -->"><!-- tmpl_var name='tag' --></a><!-- tmpl_if name="__last__" -->.<!-- tmpl_else -->, <!-- /tmpl_if --><!-- /tmpl_loop -->
+  Tags: <!-- tmpl_loop name='tags' --><a href="<!-- tmpl_var name='top' -->tags/<!-- tmpl_var name='tag' escape='html'-->"><!-- tmpl_var name='tag' escape='html' --></a><!-- tmpl_if name="__last__" -->.<!-- tmpl_else -->, <!-- /tmpl_if --><!-- /tmpl_loop -->
  <!-- tmpl_else -->
   No tags
  <!-- /tmpl_if -->
@@ -87,7 +87,7 @@
 <h2>Tags</h2>
 <ul>
 <!-- tmpl_loop name='tagcloud' -->
- <li><a href="<!-- tmpl_var name='top' -->tags/<!-- tmpl_var name='tag' -->"><!-- tmpl_var name='tag' --> (<!-- tmpl_var name='count' -->)</a></li>
+ <li><a href="<!-- tmpl_var name='top' -->tags/<!-- tmpl_var name='tag' escape='html' -->"><!-- tmpl_var name='tag' escape='html' --> (<!-- tmpl_var name='count' -->)</a></li>
 <!-- /tmpl_loop -->
 </ul>
 <!-- /tmpl_if -->
--- a/themes/blog.steve.org.uk/tags.template	Thu Dec 13 13:29:24 2007 +0000
+++ b/themes/blog.steve.org.uk/tags.template	Thu Dec 13 13:52:57 2007 +0000
@@ -60,7 +60,7 @@
 <!-- tmpl_loop name='entries' -->
 <div class="entry">
  <div class="title">
- <a href="<!-- tmpl_var name='top' --><!-- tmpl_var name='link' -->"><!-- tmpl_var name='title' --></a>
+ <a href="<!-- tmpl_var name='top' --><!-- tmpl_var name='link' escape='html' -->"><!-- tmpl_var name='title' --></a>
  </div>
  <div class="date">
   <!-- tmpl_var name='date' -->
@@ -75,7 +75,7 @@
    <!-- /tmpl_if -->
 
  <!-- tmpl_if name='tags' -->
-  Tags: <!-- tmpl_loop name='tags' --><a href="<!-- tmpl_var name='top' -->tags/<!-- tmpl_var name='tag' -->"><!-- tmpl_var name='tag' --></a><!-- tmpl_if name="__last__" -->.<!-- tmpl_else -->, <!-- /tmpl_if --><!-- /tmpl_loop -->
+  Tags: <!-- tmpl_loop name='tags' --><a href="<!-- tmpl_var name='top' -->tags/<!-- tmpl_var name='tag' escape='html' -->"><!-- tmpl_var name='tag' --></a><!-- tmpl_if name="__last__" -->.<!-- tmpl_else -->, <!-- /tmpl_if --><!-- /tmpl_loop -->
  <!-- /tmpl_if -->
  </div>
 </div>