diff options
| author | 2013-09-12 22:54:56 +0200 | |
|---|---|---|
| committer | 2013-09-12 22:54:56 +0200 | |
| commit | 5923e1a6404ab526b80f9dc31e7887a01829f1d6 (patch) | |
| tree | e83d6bd53d2e8888fbaa75532f015bee86890613 /lib/SimplePie | |
| parent | 31a6a13268023a2db5eba2445ee6c7db4a6d9623 (diff) | |
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.
Diffstat (limited to 'lib/SimplePie')
| -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 |
