Просмотр исходного кода

Merge pull request #1143 from Alkarex/SimplePie_Trim

SimplePie trim
Alexandre Alapetite 10 лет назад
Родитель
Сommit
cfb78c6f25
1 измененных файлов с 1 добавлено и 0 удалено
  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;