mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 11:45:56 +00:00
af_readability: encoding may be lower case
This commit is contained in:
@@ -123,7 +123,7 @@ class Af_Readability extends Plugin {
|
||||
if (!$tmpdoc->loadHTML($tmp))
|
||||
return $article;
|
||||
|
||||
if ($tmpdoc->encoding != 'UTF-8') {
|
||||
if (strtolower($tmpdoc->encoding) != 'utf-8') {
|
||||
$tmpxpath = new DOMXPath($tmpdoc);
|
||||
|
||||
foreach ($tmpxpath->query("//meta") as $elem) {
|
||||
|
||||
Reference in New Issue
Block a user