af_readability: encoding may be lower case

This commit is contained in:
Andrew Dolgov 2015-07-13 19:24:59 +03:00
parent 6b954c0a83
commit 37b2bca99e
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ class Af_Readability extends Plugin {
if (!$tmpdoc->loadHTML($tmp)) if (!$tmpdoc->loadHTML($tmp))
return $article; return $article;
if ($tmpdoc->encoding != 'UTF-8') { if (strtolower($tmpdoc->encoding) != 'utf-8') {
$tmpxpath = new DOMXPath($tmpdoc); $tmpxpath = new DOMXPath($tmpdoc);
foreach ($tmpxpath->query("//meta") as $elem) { foreach ($tmpxpath->query("//meta") as $elem) {