Skip to content

Commit cda4540

Browse files
authored
Merge pull request #17158 from nextcloud/backport/16310/stable15
[stable15] Don't send executionContexts for Clear-Site-Data
2 parents 7e461ab + 24d2081 commit cda4540

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

core/Controller/LoginController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public function logout() {
133133
$response = new RedirectResponse($this->urlGenerator->linkToRouteAbsolute('core.login.showLoginForm'));
134134
$this->session->set('clearingExecutionContexts', '1');
135135
$this->session->close();
136-
$response->addHeader('Clear-Site-Data', '"cache", "storage", "executionContexts"');
136+
$response->addHeader('Clear-Site-Data', '"cache", "storage"');
137137
return $response;
138138
}
139139

tests/Core/Controller/LoginControllerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public function testLogoutWithoutToken() {
117117
->willReturn('/login');
118118

119119
$expected = new RedirectResponse('/login');
120-
$expected->addHeader('Clear-Site-Data', '"cache", "storage", "executionContexts"');
120+
$expected->addHeader('Clear-Site-Data', '"cache", "storage"');
121121
$this->assertEquals($expected, $this->loginController->logout());
122122
}
123123

@@ -147,7 +147,7 @@ public function testLogoutWithToken() {
147147
->willReturn('/login');
148148

149149
$expected = new RedirectResponse('/login');
150-
$expected->addHeader('Clear-Site-Data', '"cache", "storage", "executionContexts"');
150+
$expected->addHeader('Clear-Site-Data', '"cache", "storage"');
151151
$this->assertEquals($expected, $this->loginController->logout());
152152
}
153153

0 commit comments

Comments
 (0)