]> git.mxchange.org Git - friendica.git/commitdiff
Return early if body is empty in Network\Probe::updateFromFeed
authorHypolite Petovan <hypolite@mrpetovan.com>
Tue, 17 Aug 2021 13:35:44 +0000 (09:35 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Tue, 17 Aug 2021 13:35:44 +0000 (09:35 -0400)
- Address https://github.com/friendica/friendica/issues/10473#issuecomment-894815271

src/Network/Probe.php

index 1a4c47a452a0978ce97ed2f2c573c94c7ac5ca35..8cee679400bbade33b63b83f20aaf4da4eae8467 100644 (file)
@@ -2167,7 +2167,7 @@ class Probe
        {
                // Search for the newest entry in the feed
                $curlResult = DI::httpRequest()->get($data['poll']);
-               if (!$curlResult->isSuccess()) {
+               if (!$curlResult->isSuccess() || !$curlResult->getBody()) {
                        return '';
                }