]> git.wh0rd.org Git - tt-rss.git/commitdiff
af_readability: encoding may be lower case
authorAndrew Dolgov <noreply@fakecake.org>
Mon, 13 Jul 2015 16:24:59 +0000 (19:24 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Mon, 13 Jul 2015 16:24:59 +0000 (19:24 +0300)
plugins/af_readability/init.php

index f5794d790335d3f02383d945f5a2d070314e1c42..b4ccdd335d64a7668cba1d089f8797096b3f4477 100644 (file)
@@ -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) {