diff --git a/inc/3rdparty/Readability.php b/inc/3rdparty/Readability.php index e1e8738..7605871 100644 --- a/inc/3rdparty/Readability.php +++ b/inc/3rdparty/Readability.php @@ -810,7 +810,8 @@ class Readability return $this->grabArticle($this->body); } else { - return false; + # this line was commented by Nicolas LÅ“uillet 8/8/13 due to some urls not parsed + // return false; } } return $articleContent; diff --git a/inc/poche/Tools.class.php b/inc/poche/Tools.class.php index d0e4316..4a72bae 100644 --- a/inc/poche/Tools.class.php +++ b/inc/poche/Tools.class.php @@ -170,6 +170,7 @@ class Tools preg_match('#charset="?(.*)"#si', $meta[0], $encoding); # if charset is found set it otherwise, set it to utf-8 $html_charset = (!empty($encoding[1])) ? strtolower($encoding[1]) : 'utf-8'; + if (empty($encoding[1])) $encoding[1] = 'utf-8'; } else { $html_charset = 'utf-8'; $encoding[1] = '';