From d7ceb11a64c3926f35aabf67c935680cf031bd0e Mon Sep 17 00:00:00 2001 From: Bogdan Date: Sat, 18 May 2024 19:05:24 +0300 Subject: [PATCH] Fixed: Trimming slashes from UrlBase when using environment variable --- src/NzbDrone.Core/Configuration/ConfigFileProvider.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Configuration/ConfigFileProvider.cs b/src/NzbDrone.Core/Configuration/ConfigFileProvider.cs index 4dc2e1fc2..80b4e30fe 100644 --- a/src/NzbDrone.Core/Configuration/ConfigFileProvider.cs +++ b/src/NzbDrone.Core/Configuration/ConfigFileProvider.cs @@ -242,7 +242,7 @@ namespace NzbDrone.Core.Configuration { get { - var urlBase = _serverOptions.UrlBase ?? GetValue("UrlBase", "").Trim('/'); + var urlBase = (_serverOptions.UrlBase ?? GetValue("UrlBase", "")).Trim('/'); if (urlBase.IsNullOrWhiteSpace()) {