From: Nicolas LÅ“uillet Date: Tue, 22 Nov 2016 13:25:51 +0000 (+0100) Subject: Cleared CookieJar to avoid websites who use cookies for analytics X-Git-Tag: 2.2.0~3^2~49^2~2 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=40f3ea57fbc86247495ef3c335f40f966a69aa50;p=github%2Fwallabag%2Fwallabag.git Cleared CookieJar to avoid websites who use cookies for analytics --- diff --git a/src/Wallabag/CoreBundle/Helper/HttpClientFactory.php b/src/Wallabag/CoreBundle/Helper/HttpClientFactory.php index 3e1d1ed5..161a5e9f 100644 --- a/src/Wallabag/CoreBundle/Helper/HttpClientFactory.php +++ b/src/Wallabag/CoreBundle/Helper/HttpClientFactory.php @@ -35,6 +35,8 @@ class HttpClientFactory */ public function buildHttpClient() { + // we clear the cookie to avoid websites who use cookies for analytics + $this->cookieJar->clear(); // need to set the (shared) cookie jar $client = new Client(['handler' => new SafeCurlHandler(), 'defaults' => ['cookies' => $this->cookieJar]]); $client->getEmitter()->attach($this->authenticatorSubscriber);