From fddbfc5dc255429c79632eed7a976b63e0c4f5b7 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Mon, 11 Sep 2017 11:08:53 +0200 Subject: [PATCH] Fix upload path --- Controller.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Controller.php b/Controller.php index 6502b93..dbe68cb 100644 --- a/Controller.php +++ b/Controller.php @@ -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, '/') + ) + ); } }