aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc
diff options
context:
space:
mode:
authorNicolas Lœuillet <nicolas.loeuillet@gmail.com>2013-08-08 21:13:37 +0200
committerNicolas Lœuillet <nicolas.loeuillet@gmail.com>2013-08-08 21:13:37 +0200
commit5f9bff0f71b415dd6e9753b7b7f1ad75db8aa481 (patch)
tree63e2ab4907124c37efcec07e3cb7cf996454a4a9 /inc
parent301e4c5acb423936b628f8aab0f097650592239a (diff)
downloadwallabag-5f9bff0f71b415dd6e9753b7b7f1ad75db8aa481.tar.gz
wallabag-5f9bff0f71b415dd6e9753b7b7f1ad75db8aa481.tar.zst
wallabag-5f9bff0f71b415dd6e9753b7b7f1ad75db8aa481.zip
some urls weren't well parsed
Diffstat (limited to 'inc')
-rw-r--r--inc/3rdparty/Readability.php3
-rw-r--r--inc/poche/Tools.class.php1
2 files changed, 3 insertions, 1 deletions
diff --git a/inc/3rdparty/Readability.php b/inc/3rdparty/Readability.php
index e1e8738b..7605871c 100644
--- a/inc/3rdparty/Readability.php
+++ b/inc/3rdparty/Readability.php
@@ -810,7 +810,8 @@ class Readability
810 return $this->grabArticle($this->body); 810 return $this->grabArticle($this->body);
811 } 811 }
812 else { 812 else {
813 return false; 813 # this line was commented by Nicolas Lœuillet 8/8/13 due to some urls not parsed
814 // return false;
814 } 815 }
815 } 816 }
816 return $articleContent; 817 return $articleContent;
diff --git a/inc/poche/Tools.class.php b/inc/poche/Tools.class.php
index d0e43166..4a72bae3 100644
--- a/inc/poche/Tools.class.php
+++ b/inc/poche/Tools.class.php
@@ -170,6 +170,7 @@ class Tools
170 preg_match('#charset="?(.*)"#si', $meta[0], $encoding); 170 preg_match('#charset="?(.*)"#si', $meta[0], $encoding);
171 # if charset is found set it otherwise, set it to utf-8 171 # if charset is found set it otherwise, set it to utf-8
172 $html_charset = (!empty($encoding[1])) ? strtolower($encoding[1]) : 'utf-8'; 172 $html_charset = (!empty($encoding[1])) ? strtolower($encoding[1]) : 'utf-8';
173 if (empty($encoding[1])) $encoding[1] = 'utf-8';
173 } else { 174 } else {
174 $html_charset = 'utf-8'; 175 $html_charset = 'utf-8';
175 $encoding[1] = ''; 176 $encoding[1] = '';