Add dirty workaround for old libxml on Debian Lenny
This commit is contained in:
parent
425745ad9a
commit
9f896babe5
5
vendor/PicoFeed/Filter.php
vendored
5
vendor/PicoFeed/Filter.php
vendored
@ -114,8 +114,11 @@ class Filter
|
||||
|
||||
// Convert bad formatted documents to XML
|
||||
$dom = new \DOMDocument;
|
||||
$dom->loadHTML('<?xml encoding="UTF-8">'.$data);
|
||||
$dom->loadHTML('<?xml version="1.0" encoding="UTF-8">'.$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);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user