Changeset 1654

Show
Ignore:
Timestamp:
09/14/05 15:10:31
Author:
miyagawa
Message:

Now it properly URI escapes del.icio.us link with URL TT plugin

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • bloglines2email/trunk/bloglines2email

    r1653 r1654  
    113113        cfg  => $cfg, 
    114114        get_rfc2822_date => sub { get_rfc2822_date($cfg, @_) }, 
    115     }, \my $out); 
     115        utf8 => sub { encode("utf-8", $_[0]) } 
     116    }, \my $out) or die $tt->error; 
    116117    $out; 
    117118} 
     
    129130[% IF item.description.match('(?i)^<p[ >]') %][% item.description %][% ELSE %]<div style="padding: 1em 0">[% item.description %]</div>[% END %] 
    130131[% ELSE %]<br />[% END %] 
    131 <div style="font-size:0.8em">[% IF item.pubDate %]Posted on [% get_rfc2822_date(item.pubDate) %][% END %] | <a href="[% link | html %]">permalink</a> | <a href="[% feed.link | html %]">[% feed.title | html %]</a>[% var = 'delicious-username'; IF cfg.$var %] | <a href="http://del.icio.us/[% cfg.$var %]?v=3&amp;url=[% item.link | html %]&amp;title=[% feed.title _ ": " _ item.title | html %]">Post to del.icio.us</a>[% END %]<br clear="all" /></div> 
     132<div style="font-size:0.8em">[% IF item.pubDate %]Posted on [% get_rfc2822_date(item.pubDate) %][% END %] | <a href="[% link | html %]">permalink</a> | <a href="[% feed.link | html %]">[% feed.title | html %]</a>[% var = 'delicious-username'; IF cfg.$var %][% SET u = "http://del.icio.us/" _ cfg.$var; USE delicious = url(u) %] | <a href="[% SET t = feed.title _ ": " _ item.title; delicious(v=3, url=item.link, title=utf8(t)) %]">Post to del.icio.us</a>[% END %]<br clear="all" /></div> 
    132133</div> 
    133134HTML