Kaynağa Gözat

af_readability: encoding may be lower case

Andrew Dolgov 9 yıl önce
ebeveyn
işleme
37b2bca99e
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      plugins/af_readability/init.php

+ 1 - 1
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) {