]> git.mxchange.org Git - friendica.git/blobdiff - mod/parse_url.php
Only build tag and file when really needed
[friendica.git] / mod / parse_url.php
index f1214e160f1267ab3d39dded5a3235f66d09b025..ea860f6d318016636f40af1387b842b1d1fe5da0 100644 (file)
@@ -61,7 +61,7 @@ function parse_url_content(App $a) {
        // the URL with the corresponding BBCode media tag
        $redirects = 0;
        // Fetch the header of the URL
-       $result = Network::zFetchURL($url, false, $redirects, ["novalidate" => true, "nobody" => true]);
+       $result = Network::curl($url, false, $redirects, ["novalidate" => true, "nobody" => true]);
        if($result["success"]) {
                // Convert the header fields into an array
                $hdrs = [];