Sfoglia il codice sorgente

SimplePie trim

https://github.com/FreshRSS/FreshRSS/issues/1142
Alexandre Alapetite 10 anni fa
parent
commit
8ae96d000a
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      lib/SimplePie/SimplePie.php

+ 1 - 0
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;