diff options
author | Renato Botelho <renato@netgate.com> | 2017-07-05 13:27:43 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2017-07-05 13:27:51 -0300 |
commit | 6cc74faa449b3983daa82bd84250e8a3c0289e5e (patch) | |
tree | c6b8265b75a11fff64f8cdcbc677a1b23169d706 /src/etc | |
parent | 2bf67a6fe9e507e442f6894c78726047cf2d552a (diff) | |
download | pfsense-6cc74faa449b3983daa82bd84250e8a3c0289e5e.zip pfsense-6cc74faa449b3983daa82bd84250e8a3c0289e5e.tar.gz |
Remove extra spaces from User Agent
Diffstat (limited to 'src/etc')
-rw-r--r-- | src/etc/inc/pfsense-utils.inc | 4 | ||||
-rw-r--r-- | src/etc/inc/pkg-utils.inc | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/etc/inc/pfsense-utils.inc b/src/etc/inc/pfsense-utils.inc index 2ec4e7e..2be1720 100644 --- a/src/etc/inc/pfsense-utils.inc +++ b/src/etc/inc/pfsense-utils.inc @@ -1948,7 +1948,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']); } @@ -2004,7 +2004,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']); } diff --git a/src/etc/inc/pkg-utils.inc b/src/etc/inc/pkg-utils.inc index b88082f..e342d94 100644 --- a/src/etc/inc/pkg-utils.inc +++ b/src/etc/inc/pkg-utils.inc @@ -79,7 +79,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( |