From 672b3cfee58ea6d68952481077ac5394c19b4682 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Mon, 29 Jun 2026 06:30:50 +0200 Subject: [PATCH] fix(dav): Load ProfilerPlugin only when profiler is enabled Signed-off-by: Joas Schilling --- apps/dav/lib/Server.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/dav/lib/Server.php b/apps/dav/lib/Server.php index 86768176536e0..b9b1d768af6f9 100644 --- a/apps/dav/lib/Server.php +++ b/apps/dav/lib/Server.php @@ -149,7 +149,9 @@ public function __construct( $this->server->httpRequest->setUrl($this->request->getRequestUri()); $this->server->setBaseUri($this->baseUri); - $this->server->addPlugin(new ProfilerPlugin($this->request)); + if ($this->profiler->isEnabled()) { + $this->server->addPlugin(new ProfilerPlugin($this->request)); + } $this->server->addPlugin(new BlockLegacyClientPlugin( \OCP\Server::get(IConfig::class), \OCP\Server::get(ThemingDefaults::class),