A free, self-hostable news aggregator…
SimplePie : Corrige le cas des </body> et </html>
Alexandre Alapetite5923e1a6404a
diff --git a/lib/SimplePie/SimplePie/Sanitize.php b/lib/SimplePie/SimplePie/Sanitize.phpindex 6810cc49f..83a274ced 100644--- a/lib/SimplePie/SimplePie/Sanitize.php+++ b/lib/SimplePie/SimplePie/Sanitize.php@@ -379,6 +379,7 @@ class SimplePie_Sanitizeprotected function preprocess($html, $type){$ret = '';+ $html = preg_replace('%</?(?:html|body)[^>]*?'.'>%is', '', $html);if ($type & ~SIMPLEPIE_CONSTRUCT_XHTML){// Atom XHTML constructs are wrapped with a div by default