]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix location of the profiler data 32429/head
authorCarl Schwan <carl@carlschwan.eu>
Mon, 16 May 2022 11:35:31 +0000 (13:35 +0200)
committerJohn Molakvoæ <skjnldsv@users.noreply.github.com>
Fri, 23 Feb 2024 14:30:18 +0000 (15:30 +0100)
This prevents collision with an user who could be named 'profiler'

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
lib/private/Profiler/Profiler.php

index d6749c55e3c20c6015cb11b42378204e87c7b63a..9cbf703c79b1fcfb79ee42df239198d2774dcb3a 100644 (file)
@@ -44,7 +44,7 @@ class Profiler implements IProfiler {
        public function __construct(SystemConfig $config) {
                $this->enabled = $config->getValue('profiler', false);
                if ($this->enabled) {
-                       $this->storage = new FileProfilerStorage($config->getValue('datadirectory', \OC::$SERVERROOT . '/data') . '/profiler');
+                       $this->storage = new FileProfilerStorage($config->getValue('datadirectory', \OC::$SERVERROOT . '/data') . '/__profiler');
                }
        }