Permalink
Browse files

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

…on valid feeds
  • Loading branch information...
1 parent ea3f5b5 commit 6796b5630c053862da3ef71e289a7ddf6fe0aa0e @kastashov kastashov committed Aug 12, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/simplepie/moodle_simplepie.php
@@ -151,7 +151,7 @@ function moodle_simplepie_file($url, $timeout = 10, $redirects = 5, $headers = n
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 6796b56

Please sign in to comment.