From: Hypolite Petovan Date: Thu, 21 May 2020 06:27:33 +0000 (-0400) Subject: Remove deprecated/implicit filter_var() flags in Network\Probe::ensureAbsoluteLinkFro... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=04e8d5be2c59ad5ea41e9bb4a240911e7652e269;p=friendica.git Remove deprecated/implicit filter_var() flags in Network\Probe::ensureAbsoluteLinkFromHTMLDoc - Suppresses a test breaking notice message in PHP 7.4 --- diff --git a/src/Network/Probe.php b/src/Network/Probe.php index 1a7f578673..d5b3e0be8a 100644 --- a/src/Network/Probe.php +++ b/src/Network/Probe.php @@ -1792,7 +1792,7 @@ class Probe */ private static function ensureAbsoluteLinkFromHTMLDoc(string $href, string $base, DOMXPath $xpath) { - if (filter_var($href, FILTER_VALIDATE_URL, FILTER_FLAG_SCHEME_REQUIRED | FILTER_FLAG_HOST_REQUIRED)) { + if (filter_var($href, FILTER_VALIDATE_URL)) { return $href; }