Skip to content

Commit

Permalink
MDL-23980 finally removed the sloppy urldecode() that was just a work…
Browse files Browse the repository at this point in the history
…around for the regression in simplepie itself
  • Loading branch information
skodak committed Aug 28, 2010
1 parent a762ba7 commit 43ba7a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions blocks/rss_client/block_rss_client.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,12 +197,12 @@ function get_feed_html($feedrecord, $maxentries, $showtitle){

if ($this->config->block_rss_client_show_channel_link) {

$channellink = str_replace('&', '&', $feed->get_link());
$channellink = $feed->get_link();

if (!empty($channellink)){
//NOTE: this means the 'last feed' display wins the block title - but
//this is exiting behaviour..
$this->content->footer = '<a href="'.clean_param(urldecode($channellink),PARAM_URL).'">'. get_string('clientchannellink', 'block_rss_client') .'</a>';
$this->content->footer = '<a href="'.htmlspecialchars(clean_param($channellink,PARAM_URL)).'">'. get_string('clientchannellink', 'block_rss_client') .'</a>';
}
}

Expand Down Expand Up @@ -242,7 +242,7 @@ function get_item_html($item){

$r = html_writer::start_tag('li');
$r.= html_writer::start_tag('div',array('class'=>'link'));
$r.= html_writer::link(clean_param(urldecode($link),PARAM_URL), s($title), array('onclick'=>'this.target="_blank"'));
$r.= html_writer::link(clean_param($link,PARAM_URL), s($title), array('onclick'=>'this.target="_blank"'));
$r.= html_writer::end_tag('div');

if($this->config->display_description && !empty($description)){
Expand Down

0 comments on commit 43ba7a5

Please sign in to comment.