mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 06:15:54 +00:00
af_readability: construct readability object inside try-catch block
This commit is contained in:
@@ -176,9 +176,9 @@ class Af_Readability extends Plugin {
|
||||
$tmp = $tmpdoc->saveHTML();
|
||||
}
|
||||
|
||||
$r = new Readability(new Configuration());
|
||||
|
||||
try {
|
||||
$r = new Readability(new Configuration());
|
||||
|
||||
if ($r->parse($tmp)) {
|
||||
|
||||
$tmpxpath = new DOMXPath($r->getDOMDOcument());
|
||||
|
||||
Reference in New Issue
Block a user