From 37b2bca99eb6c5fe32dbd7c70a9bd8d2e2d2198e Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 13 Jul 2015 19:24:59 +0300 Subject: [PATCH] af_readability: encoding may be lower case --- plugins/af_readability/init.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.39.5