From 9f896babe5299bd1b17386b306e5490f34ae26d7 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Tue, 21 May 2013 16:01:10 +0200 Subject: [PATCH] Add dirty workaround for old libxml on Debian Lenny --- vendor/PicoFeed/Filter.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vendor/PicoFeed/Filter.php b/vendor/PicoFeed/Filter.php index d951a09..d5f2f6b 100644 --- a/vendor/PicoFeed/Filter.php +++ b/vendor/PicoFeed/Filter.php @@ -114,8 +114,11 @@ class Filter // Convert bad formatted documents to XML $dom = new \DOMDocument; - $dom->loadHTML(''.$data); + $dom->loadHTML(''.$data); $this->input = $dom->saveXML($dom->getElementsByTagName('body')->item(0)); + + // Workaround for old libxml2 (Debian Lenny) + if (LIBXML_DOTTED_VERSION === '2.6.32') $this->input = utf8_decode($this->input); }