aboutsummaryrefslogtreecommitdiffstats
path: root/core/Controller
diff options
context:
space:
mode:
authorGaspard d'Hautefeuille <github@dhautefeuille.eu>2024-01-02 10:52:46 +0200
committerSimon L <szaimen@e.mail.de>2024-01-05 04:20:26 +0100
commit85911cbab256ce10eb5a9149ae8351feb99dfe59 (patch)
tree001b519ce6c777dcc5a7704bbdf0597aa41a7536 /core/Controller
parent7502c19ddd43853c3b4fad1e2df91aed19e6b626 (diff)
downloadnextcloud-server-85911cbab256ce10eb5a9149ae8351feb99dfe59.tar.gz
nextcloud-server-85911cbab256ce10eb5a9149ae8351feb99dfe59.zip
Cancel PR #37405, remove regression code
Signed-off-by: Gaspard d'Hautefeuille <github@dhautefeuille.eu>
Diffstat (limited to 'core/Controller')
-rw-r--r--core/Controller/LoginController.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/Controller/LoginController.php b/core/Controller/LoginController.php
index db3e8a64d64..fe2a16ec4d3 100644
--- a/core/Controller/LoginController.php
+++ b/core/Controller/LoginController.php
@@ -35,6 +35,7 @@ declare(strict_types=1);
*/
namespace OC\Core\Controller;
+use OC\AppFramework\Http\Request;
use OC\Authentication\Login\Chain;
use OC\Authentication\Login\LoginData;
use OC\Authentication\WebAuthn\Manager as WebAuthnManager;
@@ -105,8 +106,7 @@ class LoginController extends Controller {
$this->session->set('clearingExecutionContexts', '1');
$this->session->close();
- if ($this->request->getServerProtocol() === 'https') {
- // This feature is available only in secure contexts
+ if (!$this->request->isUserAgent([Request::USER_AGENT_CHROME, Request::USER_AGENT_ANDROID_MOBILE_CHROME])) {
$response->addHeader('Clear-Site-Data', '"cache", "storage"');
}