From: Andrew Dolgov Date: Mon, 13 Jul 2015 16:24:59 +0000 (+0300) Subject: af_readability: encoding may be lower case X-Git-Tag: 16.3~225 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=37b2bca99eb6c5fe32dbd7c70a9bd8d2e2d2198e;p=tt-rss.git af_readability: encoding may be lower case --- diff --git a/plugins/af_readability/init.php b/plugins/af_readability/init.php index f5794d79..b4ccdd33 100644 --- a/plugins/af_readability/init.php +++ b/plugins/af_readability/init.php @@ -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) {