Skip to content

A free, self-hostable news aggregator…

SimplePie trim

Alexandre Alapetite8ae96d000a56
diff --git a/lib/SimplePie/SimplePie.php b/lib/SimplePie/SimplePie.php
index a84f6dab3..8af55c9fd 100644
--- a/lib/SimplePie/SimplePie.php
+++ b/lib/SimplePie/SimplePie.php
@@ -1668,6 +1668,7 @@ class SimplePie
$locate = null;
}
+ $file->body = trim($file->body);
$this->raw_data = $file->body;
$this->permanent_url = $file->permanent_url;
$headers = $file->headers;