SimplePie : Corrige le cas des </body> et </html>

Corrige https://github.com/marienfressinaud/FreshRSS/issues/159
Les balises fermantes /body et /html n'étaient pas nettoyées par SimplePie.
À tester un moment puis proposer en amont à SimplePie.
pull/160/head
Alexandre Alapetite 11 years ago
parent 31a6a13268
commit 5923e1a640
  1. 1
      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

Loading…
Cancel
Save