summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2019-11-12 21:48:56 +0100
committerDaniel Kesselberg <mail@danielkesselberg.de>2019-11-30 15:17:22 +0100
commit9378a6b4111f5ae600aa04f6a6d273b07c53c78a (patch)
tree4b884c8c50445ae07097237742ed97c16636fe70 /core
parent6725a4b746382a7ebc72e7e70539954cd450240a (diff)
downloadnextcloud-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.php8
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;
}