From 71adad8817ba869eb886c3dc731e3f4f9bbe2f65 Mon Sep 17 00:00:00 2001 From: Brice Maron Date: Sat, 17 Nov 2012 21:08:58 +0000 Subject: [PATCH 1/2] Add User agent when OC does a request --- lib/util.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util.php b/lib/util.php index 725278a39e6..09b59a2353b 100755 --- a/lib/util.php +++ b/lib/util.php @@ -688,7 +688,7 @@ class OC_Util { curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 10); curl_setopt($curl, CURLOPT_URL, $url); - + curl_setopt($ch, CURLOPT_USERAGENT, "Owncloud Server Crawler"); $data = curl_exec($curl); curl_close($curl); From 4337e0fb99060cae43f7d44f3b4a5822701c2b25 Mon Sep 17 00:00:00 2001 From: Brice Maron Date: Sat, 17 Nov 2012 22:12:24 +0000 Subject: [PATCH 2/2] Little case fix --- lib/util.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util.php b/lib/util.php index 09b59a2353b..dd3c3721a68 100755 --- a/lib/util.php +++ b/lib/util.php @@ -688,7 +688,7 @@ class OC_Util { curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, 10); curl_setopt($curl, CURLOPT_URL, $url); - curl_setopt($ch, CURLOPT_USERAGENT, "Owncloud Server Crawler"); + curl_setopt($ch, CURLOPT_USERAGENT, "ownCloud Server Crawler"); $data = curl_exec($curl); curl_close($curl);