Permalink
Browse files

MDL-41122: Trim on RSS body to prevent Remote RSS block from failing …

…on valid feeds
  • Loading branch information...
kastashov committed Aug 12, 2013
1 parent 50ff861 commit faaf3f63c2f2e2f041a21a0da0bcd7c8822799b5
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/simplepie/moodle_simplepie.php
@@ -154,7 +154,7 @@ public function __construct($url, $timeout = 10, $redirects = 5, $headers = null
if ($parser->parse()) {
$this->headers = $parser->headers;
- $this->body = $parser->body;
+ $this->body = trim($parser->body);
$this->status_code = $parser->status_code;

0 comments on commit faaf3f6

Please sign in to comment.