]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Cleared CookieJar to avoid websites who use cookies for analytics
authorNicolas Lœuillet <nicolas@loeuillet.org>
Tue, 22 Nov 2016 13:25:51 +0000 (14:25 +0100)
committerNicolas Lœuillet <nicolas@loeuillet.org>
Tue, 22 Nov 2016 13:25:51 +0000 (14:25 +0100)
src/Wallabag/CoreBundle/Helper/HttpClientFactory.php

index 3e1d1ed5d7f1f77273e0b4a89a61d5d13d82001a..161a5e9fb41fc535b3dd8d517efd1684c7ff40f8 100644 (file)
@@ -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);