mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-12-04 06:04:16 +09:00
Merge pull request #967 from boxbilling/bulk-fixes
Updated cURL user agent
This commit is contained in:
1 file changed
+1
-1
@@ -63,7 +63,7 @@ class Box_Tools
|
||||
public function get_url($url, $timeout = 10)
|
||||
{
|
||||
$ch = curl_init();
|
||||
$userAgent = 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)';
|
||||
$userAgent = 'Mozilla/5.0 (Windows NT 10.0; rv:91.0) Gecko/20100101 Firefox/91.0';
|
||||
curl_setopt($ch, CURLOPT_USERAGENT, $userAgent);
|
||||
curl_setopt($ch, CURLOPT_URL, $url);
|
||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
||||
|
||||
Reference in new issue
Block a user