diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-11-22 14:25:51 +0100 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-11-22 14:25:51 +0100 |
commit | 40f3ea57fbc86247495ef3c335f40f966a69aa50 (patch) | |
tree | 795237799153f51b365e86e36fa85f42fc1d62b3 /src | |
parent | 7aab0ecf2f78ce58f28b53c1fa19bfd824cc3cd7 (diff) | |
download | wallabag-40f3ea57fbc86247495ef3c335f40f966a69aa50.tar.gz wallabag-40f3ea57fbc86247495ef3c335f40f966a69aa50.tar.zst wallabag-40f3ea57fbc86247495ef3c335f40f966a69aa50.zip |
Cleared CookieJar to avoid websites who use cookies for analytics
Diffstat (limited to 'src')
-rw-r--r-- | src/Wallabag/CoreBundle/Helper/HttpClientFactory.php | 2 |
1 files changed, 2 insertions, 0 deletions
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 | |||
35 | */ | 35 | */ |
36 | public function buildHttpClient() | 36 | public function buildHttpClient() |
37 | { | 37 | { |
38 | // we clear the cookie to avoid websites who use cookies for analytics | ||
39 | $this->cookieJar->clear(); | ||
38 | // need to set the (shared) cookie jar | 40 | // need to set the (shared) cookie jar |
39 | $client = new Client(['handler' => new SafeCurlHandler(), 'defaults' => ['cookies' => $this->cookieJar]]); | 41 | $client = new Client(['handler' => new SafeCurlHandler(), 'defaults' => ['cookies' => $this->cookieJar]]); |
40 | $client->getEmitter()->attach($this->authenticatorSubscriber); | 42 | $client->getEmitter()->attach($this->authenticatorSubscriber); |