mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Remove extra spaces from User Agent
This commit is contained in:
parent
48600bc6d4
commit
0d3d86c8f0
@ -1975,7 +1975,7 @@ function download_file($url, $destination, $verify_ssl = true, $connect_timeout
|
||||
curl_setopt($ch, CURLOPT_HEADER, false);
|
||||
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
|
||||
if (!isset($config['system']['do_not_send_uniqueid'])) {
|
||||
curl_setopt($ch, CURLOPT_USERAGENT, $g['product_name'] . '/' . $g['product_version'] . ' : ' . system_get_uniqueid());
|
||||
curl_setopt($ch, CURLOPT_USERAGENT, $g['product_name'] . '/' . $g['product_version'] . ':' . system_get_uniqueid());
|
||||
} else {
|
||||
curl_setopt($ch, CURLOPT_USERAGENT, $g['product_name'] . '/' . $g['product_version']);
|
||||
}
|
||||
@ -2030,7 +2030,7 @@ function download_file_with_progress_bar($url, $destination, $verify_ssl = true,
|
||||
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $connect_timeout);
|
||||
curl_setopt($ch, CURLOPT_TIMEOUT, $timeout);
|
||||
if (!isset($config['system']['do_not_send_uniqueid'])) {
|
||||
curl_setopt($ch, CURLOPT_USERAGENT, $g['product_name'] . '/' . $g['product_version'] . ' : ' . system_get_uniqueid());
|
||||
curl_setopt($ch, CURLOPT_USERAGENT, $g['product_name'] . '/' . $g['product_version'] . ':' . system_get_uniqueid());
|
||||
} else {
|
||||
curl_setopt($ch, CURLOPT_USERAGENT, $g['product_name'] . '/' . $g['product_version']);
|
||||
}
|
||||
|
||||
@ -111,7 +111,7 @@ function pkg_env($extra_env = array()) {
|
||||
|
||||
$user_agent = $g['product_name'] . '/' . $g['product_version'];
|
||||
if (!isset($config['system']['do_not_send_uniqueid'])) {
|
||||
$user_agent .= ' : ' . system_get_uniqueid();
|
||||
$user_agent .= ':' . system_get_uniqueid();
|
||||
}
|
||||
|
||||
$pkg_env_vars = array(
|
||||
|
||||
@ -80,7 +80,7 @@ function upload_crash_report($files) {
|
||||
curl_setopt($ch, CURLOPT_SAFE_UPLOAD, false);
|
||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
||||
if (!isset($config['system']['do_not_send_uniqueid'])) {
|
||||
curl_setopt($ch, CURLOPT_USERAGENT, $g['product_name'] . '/' . $g['product_version'] . ' : ' . system_get_uniqueid());
|
||||
curl_setopt($ch, CURLOPT_USERAGENT, $g['product_name'] . '/' . $g['product_version'] . ':' . system_get_uniqueid());
|
||||
} else {
|
||||
curl_setopt($ch, CURLOPT_USERAGENT, $g['product_name'] . '/' . $g['product_version']);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user