diff options
author | Daniel Kesselberg <mail@danielkesselberg.de> | 2019-11-12 21:48:56 +0100 |
---|---|---|
committer | Daniel Kesselberg <mail@danielkesselberg.de> | 2019-11-30 15:17:22 +0100 |
commit | 9378a6b4111f5ae600aa04f6a6d273b07c53c78a (patch) | |
tree | 4b884c8c50445ae07097237742ed97c16636fe70 /core | |
parent | 6725a4b746382a7ebc72e7e70539954cd450240a (diff) | |
download | nextcloud-server-9378a6b4111f5ae600aa04f6a6d273b07c53c78a.tar.gz nextcloud-server-9378a6b4111f5ae600aa04f6a6d273b07c53c78a.zip |
Send Clear-Site-Data expect for Chrome
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'core')
-rw-r--r-- | core/Controller/LoginController.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/core/Controller/LoginController.php b/core/Controller/LoginController.php index e9e2f02edb2..705a8ec4429 100644 --- a/core/Controller/LoginController.php +++ b/core/Controller/LoginController.php @@ -33,9 +33,9 @@ namespace OC\Core\Controller; +use OC\AppFramework\Http\Request; use OC\Authentication\Login\Chain; use OC\Authentication\Login\LoginData; -use OC\Authentication\TwoFactorAuth\Manager; use OC\Security\Bruteforce\Throttler; use OC\User\Session; use OC_App; @@ -128,7 +128,11 @@ class LoginController extends Controller { $this->session->set('clearingExecutionContexts', '1'); $this->session->close(); - $response->addHeader('Clear-Site-Data', '"cache", "storage"'); + + if (!$this->request->isUserAgent([Request::USER_AGENT_CHROME, Request::USER_AGENT_ANDROID_MOBILE_CHROME])) { + $response->addHeader('Clear-Site-Data', '"cache", "storage"'); + } + return $response; } |