Permalink
Browse files

rss MDL-25563 made the rss block unescape item URLs to prevent double…

… escaping
  • Loading branch information...
1 parent 026011c commit 77fb01833e00adf330abd53f715a45df501dbcf0 Andrew Davis committed Dec 9, 2010
Showing with 5 additions and 0 deletions.
  1. +5 −0 blocks/rss_client/block_rss_client.php
@@ -238,6 +238,11 @@ function get_item_html($item){
if(empty($link)){
$link = $item->get_id();
+ } else {
+ //URLs in our RSS cache will be escaped (correctly as theyre store in XML)
+ //html_writer::link() will re-escape them. To prevent double escaping unescape here.
+ //This can by done using htmlspecialchars_decode() but moodle_url also has that effect
+ $link = new moodle_url($link);
}
$r = html_writer::start_tag('li');

0 comments on commit 77fb018

Please sign in to comment.