diff options
| author | 2013-09-14 10:58:36 -0700 | |
|---|---|---|
| committer | 2013-09-14 10:58:36 -0700 | |
| commit | ca45605acff728fcfa12d80e8562f05ae6bdb9f7 (patch) | |
| tree | 1dd8c6c1ee1bf850d639c5e8d84976710fe27f95 /lib | |
| parent | b2e02ebf873d5045f91ec71091a556a21501c5fe (diff) | |
| parent | 5923e1a6404ab526b80f9dc31e7887a01829f1d6 (diff) | |
Merge pull request #160 from Alkarex/patch-1
SimplePie : Corrige le cas des </body> et </html>
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/SimplePie/SimplePie/Sanitize.php | 1 |
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 |
