mirror of
https://github.com/nextcloud/server.git
synced 2026-02-19 02:38:40 -05:00
fix(status): Avoid session creation for status requests
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
This commit is contained in:
parent
3822db5174
commit
33d7019f58
1 changed files with 7 additions and 0 deletions
|
|
@ -363,6 +363,13 @@ class OC {
|
|||
public static function initSession(): void {
|
||||
$request = Server::get(IRequest::class);
|
||||
|
||||
// Do not initialize sessions for 'status.php' requests
|
||||
// Monitoring endpoints can quickly flood session handlers
|
||||
// and 'status.php' doesn't require sessions anyway
|
||||
if (str_ends_with($request->getScriptName(), '/status.php')) {
|
||||
return;
|
||||
}
|
||||
|
||||
// TODO: Temporary disabled again to solve issues with CalDAV/CardDAV clients like DAVx5 that use cookies
|
||||
// TODO: See https://github.com/nextcloud/server/issues/37277#issuecomment-1476366147 and the other comments
|
||||
// TODO: for further information.
|
||||
|
|
|
|||
Loading…
Reference in a new issue