diff options
author | Git'Fellow <12234510+solracsf@users.noreply.github.com> | 2024-11-20 18:26:48 +0100 |
---|---|---|
committer | Git'Fellow <12234510+solracsf@users.noreply.github.com> | 2024-11-21 15:00:24 +0100 |
commit | 33d7019f589488d564041307da553d38ba66bd42 (patch) | |
tree | a4a048ab13c778648c2151621e2d42eceee757b6 | |
parent | 3822db51742eb12c67b525cab80ec0699e011684 (diff) | |
download | nextcloud-server-avoidStatusSessions.tar.gz nextcloud-server-avoidStatusSessions.zip |
fix(status): Avoid session creation for status requestsavoidStatusSessions
Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
-rw-r--r-- | lib/base.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/base.php b/lib/base.php index 53231999e81..b0334ecd729 100644 --- a/lib/base.php +++ b/lib/base.php @@ -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. |