Changeset 40 in bookmarks for trunk


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

Legend:

Unmodified
Added
Removed
  • trunk/BookmarkApp.pm

    r39 r40  
    8383            query => { 
    8484                tag => $tags, 
     85                format => 'text', 
    8586            }, 
    8687        } 
  • trunk/bookmark.tt

    r3 r40  
    2020        <strong>New bookmark:</strong> 
    2121      [% END %] 
    22       <a href="[% uri %]" target="_blank">[% title or uri %]</a> 
     22      <a href="[% uri | html %]" target="_blank">[% title or uri %]</a> 
    2323      [% IF exists %] 
    2424        <p class="timestamps">[% created %]</p> 
  • 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.