Fix upload path

This commit is contained in:
Dennis Eichhorn 2017-09-11 11:08:53 +02:00
parent fa96dd5612
commit fddbfc5dc2

View File

@ -277,7 +277,11 @@ class Controller extends ModuleAbstract implements WebInterface
private static function normalizeDbPath(string $path) : string
{
return str_replace('\\', '/', str_replace(realpath(__DIR__ . '/../../') . '/', '', rtrim($path, '/')));
return str_replace('\\', '/',
str_replace(realpath(__DIR__ . '/../../'), '',
rtrim($path, '/')
)
);
}
}