]> git.mxchange.org Git - friendica.git/blobdiff - mod/parse_url.php
Moved "privacy_image_cache" into the core. Enabled by default, can be disabled in...
[friendica.git] / mod / parse_url.php
index 7f10dce3496cad36b82b137cc87a703b34746db9..5048f4fa53903ac6ea90d74eb7d827ff6928cf54 100644 (file)
@@ -71,8 +71,7 @@ function parseurl_getsiteinfo($url, $no_guessing = false, $do_oembed = true, $co
        curl_setopt($ch, CURLOPT_TIMEOUT, 3);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
        //curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
-       //curl_setopt($ch,CURLOPT_USERAGENT,' Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Firefox/24.0');
-       curl_setopt($ch,CURLOPT_USERAGENT, "Mozilla/5.0 (compatible; Friendica)");
+       curl_setopt($ch,CURLOPT_USERAGENT, "Mozilla/5.0 (compatible; ".FRIENDICA_PLATFORM." ".FRIENDICA_VERSION."-".DB_UPDATE_VERSION.")");
 
        $header = curl_exec($ch);
        $curl_info = @curl_getinfo($ch);