aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2013-09-14 21:17:48 +0200
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2013-09-14 21:17:48 +0200
commit9db14d1cd3e474622a42bee40cb62ba41f4cc4b1 (patch)
treee5f1cd92b9e2cef2f85dbf04d23ab55bcafd270d /lib
parent597a62148a17949a030afed5c62525914de84e11 (diff)
parent619671ec6613089c6338a4112a3f40e46c17086e (diff)
Merge branch 'dev' into Alkarex-NbUnread
Diffstat (limited to 'lib')
-rw-r--r--lib/SimplePie/SimplePie/Sanitize.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/SimplePie/SimplePie/Sanitize.php b/lib/SimplePie/SimplePie/Sanitize.php
index 6810cc49f..83a274ced 100644
--- a/lib/SimplePie/SimplePie/Sanitize.php
+++ b/lib/SimplePie/SimplePie/Sanitize.php
@@ -379,6 +379,7 @@ class SimplePie_Sanitize
protected 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