Changeset 40 in bookmarks for trunk/list.tt


Ignore:
Timestamp:
05/29/13 01:04:45 (11 years ago)
Author:
peter
Message:
  • include the "format=text" query parameter for the text/uri-list list link
  • HTML-escape URIs in the templates
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/list.tt

    r34 r40  
    102102            (<a href="[% resource.id %]" onclick="window.open(this.href, 'edit_bookmark', 'width=800,height=250').focus(); return false;">Edit</a>) 
    103103          </span> 
    104           <a href="[% resource.uri %]" title="[% resource.title | html %] ([% resource.tags.join(', ') %])">[% resource.title or resource.uri %]</a> 
     104          <a href="[% resource.uri | html %]" title="[% resource.title | html %] ([% resource.tags.join(', ') %])">[% resource.title or resource.uri %]</a> 
    105105          <div class="tags"> 
    106106            [% FOREACH tag IN resource.tags %] 
     
    114114      [% FOREACH link IN links %] 
    115115        <li> 
    116           <a href="[% link.href.canonical %]" type="[% link.type %]" rel="[% link.rel %]">[% link.text %]</a> 
     116          <a href="[% link.href.canonical | html %]" type="[% link.type %]" rel="[% link.rel %]">[% link.text %]</a> 
    117117        </li> 
    118118      [% END %] 
Note: See TracChangeset for help on using the changeset viewer.