Permalink
Browse files

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

…on valid feeds
  • Loading branch information...
1 parent cda44a1 commit 5ec001f19fde16b3f8223b41e16b114ae32c3767 @kastashov kastashov committed Aug 12, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/simplepie/moodle_simplepie.php
@@ -153,7 +153,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 5ec001f

Please sign in to comment.