Browse Source

Quit earlier in ProbeURL->getFeedLink if body is empty

pull/9953/head
Hypolite Petovan 8 months ago
committed by GitHub
parent
commit
77b24a0b66
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/Network/Probe.php

3
src/Network/Probe.php

@ -1754,10 +1754,11 @@ class Probe
*/
public static function getFeedLink(string $url, string $body)
{
$doc = new DOMDocument();
if (empty($body)) {
return '';
}
$doc = new DOMDocument();
if (!@$doc->loadHTML($body)) {
return false;
}

Loading…
Cancel
Save