]> git.mxchange.org Git - friendica.git/commitdiff
Remove deprecated/implicit filter_var() flags in Network\Probe::ensureAbsoluteLinkFro...
authorHypolite Petovan <hypolite@mrpetovan.com>
Thu, 21 May 2020 06:27:33 +0000 (02:27 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Thu, 21 May 2020 06:27:33 +0000 (02:27 -0400)
- Suppresses a test breaking notice message in PHP 7.4

src/Network/Probe.php

index 1a7f57867378f4ad17335cf2afe276ce7807f206..d5b3e0be8a0a12afaadf25d221aae83315839db0 100644 (file)
@@ -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;
                }