Explorar el Código

af_readability: encoding may be lower case

Andrew Dolgov hace 9 años
padre
commit
37b2bca99e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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) {