mirror of
https://github.com/moparisthebest/wallabag
synced 2024-11-27 03:12:21 -05:00
some urls weren't well parsed
This commit is contained in:
parent
301e4c5acb
commit
5f9bff0f71
3
inc/3rdparty/Readability.php
vendored
3
inc/3rdparty/Readability.php
vendored
@ -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;
|
||||
|
@ -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] = '';
|
||||
|
Loading…
Reference in New Issue
Block a user