From ef70af66fceaf522b2d27012dcf7c379029ffeae 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 ecd4ac2b175d4..f3d5dd00242ec 100644 --- a/apps/dav/lib/Server.php +++ b/apps/dav/lib/Server.php @@ -148,7 +148,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),