Avoid HTML parsing of an empty body

This commit is contained in:
Michael 2021-04-10 05:46:19 +00:00
parent 3e2fa7867c
commit 5a00902e11
7 changed files with 26 additions and 9 deletions

View file

@ -214,7 +214,7 @@ class ParseUrl
}
$curlResult = DI::httpRequest()->get($url);
if (!$curlResult->isSuccess()) {
if (!$curlResult->isSuccess() || empty($curlResult->getBody())) {
return $siteinfo;
}