Merge pull request #4121 from cvium/normalize_app_paths

Normalize application paths
This commit is contained in:
Bond-009 2020-09-11 17:01:58 +00:00 committed by GitHub
commit 6bf0acb854
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -527,6 +527,13 @@ namespace Jellyfin.Server
}
}
// Normalize paths. Only possible with GetFullPath for now - https://github.com/dotnet/runtime/issues/2162
dataDir = Path.GetFullPath(dataDir);
logDir = Path.GetFullPath(logDir);
configDir = Path.GetFullPath(configDir);
cacheDir = Path.GetFullPath(cacheDir);
webDir = Path.GetFullPath(webDir);
// Ensure the main folders exist before we continue
try
{