diff options
author | zotlabs <mike@macgirvin.com> | 2017-01-24 19:44:24 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-01-24 19:44:24 -0800 |
commit | 33aa373b3f864867e36f78095c3a4fdc89c26ad5 (patch) | |
tree | 8e18d2bc3479e8475e5a881386cd7f88e7f95d02 /include | |
parent | d96a7bc1fae81dbf7b569a7aac757efc25a533b9 (diff) | |
download | volse-hubzilla-33aa373b3f864867e36f78095c3a4fdc89c26ad5.tar.gz volse-hubzilla-33aa373b3f864867e36f78095c3a4fdc89c26ad5.tar.bz2 volse-hubzilla-33aa373b3f864867e36f78095c3a4fdc89c26ad5.zip |
minor
Diffstat (limited to 'include')
-rw-r--r-- | include/network.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/network.php b/include/network.php index d571ec2ce..4391f1bfe 100644 --- a/include/network.php +++ b/include/network.php @@ -51,7 +51,7 @@ function z_fetch_url($url, $binary = false, $redirects = 0, $opts = array()) { @curl_setopt($ch, CURLOPT_CAINFO, get_capath()); @curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true); @curl_setopt($ch, CURLOPT_RETURNTRANSFER,true); - @curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (compatible; Red)"); + @curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (compatible; zot)"); $ciphers = @get_config('system','curl_ssl_ciphers'); if($ciphers) @@ -84,7 +84,7 @@ function z_fetch_url($url, $binary = false, $redirects = 0, $opts = array()) { @curl_setopt($ch, CURLOPT_CUSTOMREQUEST, $opts['custom']); if(x($opts,'timeout') && intval($opts['timeout'])) { - @curl_setopt($ch, CURLOPT_TIMEOUT, $opts['timeout']); + @curl_setopt($ch, CURLOPT_TIMEOUT, intval($opts['timeout'])); } else { $curl_time = intval(@get_config('system','curl_timeout')); @@ -218,7 +218,7 @@ function z_post_url($url,$params, $redirects = 0, $opts = array()) { @curl_setopt($ch, CURLOPT_RETURNTRANSFER,true); @curl_setopt($ch, CURLOPT_POST,1); @curl_setopt($ch, CURLOPT_POSTFIELDS,$params); - @curl_setopt($ch, CURLOPT_USERAGENT, "Red"); + @curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (compatible; zot)"); $ciphers = @get_config('system','curl_ssl_ciphers'); if($ciphers) |