limit filesize of crawls
This commit is contained in:
parent
f23fdaad28
commit
e9b6f113d9
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ foreach ($arg as $url) {
|
|||
$stmt = $db->prepare('DELETE FROM indexed WHERE url = ?');
|
||||
$stmt->execute([htmlspecialchars(htmlspecialchars_decode($url))]);
|
||||
|
||||
$file = file_get_contents($url, false, $context);
|
||||
$file = file_get_contents($url, false, $context, 0, 1000000);
|
||||
if (!$file || strpos($http_response_header[0],'200 OK') === false)
|
||||
continue;
|
||||
$title = page_title($file);
|
||||
|
|
Loading…
Reference in a new issue