Fix location of the profiler data

This prevents collision with an user who could be named 'profiler'

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
This commit is contained in:
Carl Schwan 2022-05-16 13:35:31 +02:00 committed by John Molakvoæ
parent fa773ece6d
commit 6ad335e229
1 changed files with 1 additions and 1 deletions

View 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');
}
}