1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 13:25:54 +00:00

limit maximum article length allowed for readability

This commit is contained in:
Andrew Dolgov
2015-10-06 14:12:22 +03:00
parent 86d07d367c
commit 4d03c5c59f
2 changed files with 5 additions and 2 deletions

View File

@@ -119,7 +119,7 @@ class Af_Readability extends Plugin {
$tmp = fetch_file_contents($article["link"]);
if ($tmp) {
if ($tmp && mb_strlen($tmp) < 65535 * 4) {
$tmpdoc = new DOMDocument("1.0", "UTF-8");
if (!$tmpdoc->loadHTML($tmp))