Fixed: Trimming slashes from UrlBase when using environment variable

This commit is contained in:
Bogdan
2024-05-18 19:05:24 +03:00
parent a4257cbcde
commit 948fe0a6dc

View File

@@ -245,7 +245,7 @@ namespace NzbDrone.Core.Configuration
{
get
{
var urlBase = _serverOptions.UrlBase ?? GetValue("UrlBase", "").Trim('/');
var urlBase = (_serverOptions.UrlBase ?? GetValue("UrlBase", "")).Trim('/');
if (urlBase.IsNullOrWhiteSpace())
{