From 68fa9c4240a6b1fc361bdc2b000c8ea878b334e1 Mon Sep 17 00:00:00 2001 From: Steffen Lange Date: Wed, 24 Feb 2021 15:00:49 +0100 Subject: [PATCH] Add URL to user agent string --- PatchBase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PatchBase.php b/PatchBase.php index babe95f..657e385 100644 --- a/PatchBase.php +++ b/PatchBase.php @@ -81,7 +81,7 @@ abstract class PatchBase { private function curl(string $url, array $opts = array()) { if ($ch = curl_init()) { curl_setopt($ch, CURLOPT_URL, $url); - curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:1.0) Gecko/20200101 Patchbot/1.0'); + curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (compatible; Patchbot/1.0; +http://www.patchbot.de/)'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); foreach ($opts as $opt)