fix(dav): Load ProfilerPlugin only when profiler is enabled

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2026-06-29 06:30:50 +02:00 committed by backportbot[bot]
parent 1940565e5e
commit 672b3cfee5

View file

@ -149,7 +149,9 @@ class Server {
$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),