projects
/
tt-rss.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b954c0
)
af_readability: encoding may be lower case
author
Andrew Dolgov
<noreply@fakecake.org>
Mon, 13 Jul 2015 16:24:59 +0000
(19:24 +0300)
committer
Andrew Dolgov
<noreply@fakecake.org>
Mon, 13 Jul 2015 16:24:59 +0000
(19:24 +0300)
plugins/af_readability/init.php
patch
|
blob
|
history
diff --git
a/plugins/af_readability/init.php
b/plugins/af_readability/init.php
index f5794d790335d3f02383d945f5a2d070314e1c42..b4ccdd335d64a7668cba1d089f8797096b3f4477 100644
(file)
--- 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) {