Skip to content

Commit

Permalink
Merge branch 'MOODLE_23_STABLE' into install_23_STABLE
Browse files Browse the repository at this point in the history
  • Loading branch information
AMOS bot committed Sep 8, 2013
2 parents 22c1afc + 7529b39 commit 77cb098
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 9 deletions.
7 changes: 4 additions & 3 deletions blocks/rss_client/viewfeed.php
Expand Up @@ -84,15 +84,16 @@
$feedtitle = $rss->get_title(); $feedtitle = $rss->get_title();
} }
echo '<table align="center" width="50%" cellspacing="1">'."\n"; echo '<table align="center" width="50%" cellspacing="1">'."\n";
echo '<tr><td colspan="2"><strong>'. $feedtitle .'</strong></td></tr>'."\n"; echo '<tr><td colspan="2"><strong>'. s($feedtitle) .'</strong></td></tr>'."\n";
foreach ($rss->get_items() as $item) { foreach ($rss->get_items() as $item) {
echo '<tr><td valign="middle">'."\n"; echo '<tr><td valign="middle">'."\n";
echo '<a href="'. $item->get_link() .'" target="_blank"><strong>'. $item->get_title(); echo '<a href="'.$item->get_link().'" target="_blank"><strong>';
echo s($item->get_title());
echo '</strong></a>'."\n"; echo '</strong></a>'."\n";
echo '</td>'."\n"; echo '</td>'."\n";
echo '</tr>'."\n"; echo '</tr>'."\n";
echo '<tr><td colspan="2"><small>'; echo '<tr><td colspan="2"><small>';
echo $item->get_description() .'</small></td></tr>'."\n"; echo format_text($item->get_description(), FORMAT_HTML) .'</small></td></tr>'."\n";
} }
echo '</table>'."\n"; echo '</table>'."\n";


Expand Down
11 changes: 7 additions & 4 deletions blog/locallib.php
Expand Up @@ -214,11 +214,14 @@ public function print_html($return=false) {
$contentcell->text .= $template['body']; $contentcell->text .= $template['body'];
$contentcell->text .= $attachedimages; $contentcell->text .= $attachedimages;


// Uniquehash is used as a link to an external blog
if (!empty($this->uniquehash)) { if (!empty($this->uniquehash)) {
$contentcell->text .= $OUTPUT->container_start('externalblog'); // Uniquehash is used as a link to an external blog
$contentcell->text .= html_writer::link($this->uniquehash, get_string('linktooriginalentry', 'blog')); $url = clean_param($this->uniquehash, PARAM_URL);
$contentcell->text .= $OUTPUT->container_end(); if (!empty($url)) {
$contentcell->text .= $OUTPUT->container_start('externalblog');
$contentcell->text .= html_writer::link($url, get_string('linktooriginalentry', 'blog'));
$contentcell->text .= $OUTPUT->container_end();
}
} }


// Links to tags // Links to tags
Expand Down
2 changes: 2 additions & 0 deletions lib/simplepie/readme_moodle.txt
Expand Up @@ -5,6 +5,8 @@ Obtained from http://github.com/simplepie/simplepie/commit/798f4674468316b8cc70f
Changes: Changes:
* None. This import contains _NO_CHANGES_ to the simplepie.inc file, changes are * None. This import contains _NO_CHANGES_ to the simplepie.inc file, changes are
controlled through OO extension of the classes instead. controlled through OO extension of the classes instead.
* Exception: The Sanitizer has been modified to return valid URLs. The change
is done through OO extension in 25 and upwards but not in 23 and 24.


Dan Poltawski <talktodan@gmail.com> Dan Poltawski <talktodan@gmail.com>
Petr Skoda Petr Skoda
4 changes: 4 additions & 0 deletions lib/simplepie/simplepie.class.php
Expand Up @@ -14466,6 +14466,10 @@ public function sanitize($data, $type, $base = '')
if ($type & SIMPLEPIE_CONSTRUCT_IRI) if ($type & SIMPLEPIE_CONSTRUCT_IRI)
{ {
$data = SimplePie_Misc::absolutize_url($data, $base); $data = SimplePie_Misc::absolutize_url($data, $base);
// Moodle modification - Only return valid URLs. Note this change is interim and
// 2.5 and upwards have the cleaning performed in our own sanitizer.
$data = clean_param($data, PARAM_URL);
// End of Moodle modification.
} }


if ($type & (SIMPLEPIE_CONSTRUCT_TEXT | SIMPLEPIE_CONSTRUCT_IRI)) if ($type & (SIMPLEPIE_CONSTRUCT_TEXT | SIMPLEPIE_CONSTRUCT_IRI))
Expand Down
4 changes: 2 additions & 2 deletions version.php
Expand Up @@ -29,11 +29,11 @@


defined('MOODLE_INTERNAL') || die(); defined('MOODLE_INTERNAL') || die();


$version = 2012062508.07; // YYYYMMDD = weekly release date of this DEV branch $version = 2012062509.00; // YYYYMMDD = weekly release date of this DEV branch
// RR = release increments - 00 in DEV branches // RR = release increments - 00 in DEV branches
// .XX = incremental changes // .XX = incremental changes


$release = '2.3.8+ (Build: 20130905)'; // Human-friendly version name $release = '2.3.9 (Build: 20130909)'; // Human-friendly version name


$branch = '23'; // this version's branch $branch = '23'; // this version's branch
$maturity = MATURITY_STABLE; // this version's maturity level $maturity = MATURITY_STABLE; // this version's maturity level

0 comments on commit 77cb098

Please sign in to comment.