diff options
author | Gaspard d'Hautefeuille <github@dhautefeuille.eu> | 2024-01-04 22:35:44 +0200 |
---|---|---|
committer | Simon L <szaimen@e.mail.de> | 2024-01-05 04:20:26 +0100 |
commit | 08ff644f3cba2723324dd4c01adf1bfad66d01b0 (patch) | |
tree | ee013e5018b53e2d7b03f9581717bb2bf03acb9c /core/Controller/LoginController.php | |
parent | 85911cbab256ce10eb5a9149ae8351feb99dfe59 (diff) | |
download | nextcloud-server-08ff644f3cba2723324dd4c01adf1bfad66d01b0.tar.gz nextcloud-server-08ff644f3cba2723324dd4c01adf1bfad66d01b0.zip |
Keep https check
https://github.com/nextcloud/server/issues/41196 + keep https check
Co-authored-by: Louis <louis@chmn.me>
Signed-off-by: Gaspard d'Hautefeuille <github@dhautefeuille.eu>
Diffstat (limited to 'core/Controller/LoginController.php')
-rw-r--r-- | core/Controller/LoginController.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/core/Controller/LoginController.php b/core/Controller/LoginController.php index fe2a16ec4d3..a1e2b08ab21 100644 --- a/core/Controller/LoginController.php +++ b/core/Controller/LoginController.php @@ -106,7 +106,10 @@ class LoginController extends Controller { $this->session->set('clearingExecutionContexts', '1'); $this->session->close(); - if (!$this->request->isUserAgent([Request::USER_AGENT_CHROME, Request::USER_AGENT_ANDROID_MOBILE_CHROME])) { + if ( + $this->request->getServerProtocol() === 'https' && + !$this->request->isUserAgent([Request::USER_AGENT_CHROME, Request::USER_AGENT_ANDROID_MOBILE_CHROME]) + ) { $response->addHeader('Clear-Site-Data', '"cache", "storage"'); } |