Changeset 364

Show
Ignore:
Timestamp:
03/07/06 14:41:51
Author:
miyagawa
Message:

Support # in HatenaBookmarkUsersCount? widget. Thanks to otsune

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/plagger/lib/Plagger/Plugin/Widget/HatenaBookmarkUsersCount.pm

    r79 r364  
    2020    my($self, $entry) = @_; 
    2121 
    22     my $uri = URI->new('http://b.hatena.ne.jp/entry/' . $entry->permalink); 
     22    my $permalink = $entry->permalink; 
     23       $permalink =~ s/\#/%23/; 
     24    my $uri = URI->new('http://b.hatena.ne.jp/entry/' . $permalink); 
     25 
    2326    my $url = HTML::Entities::encode($uri->as_string); 
    2427