Fixed: Trimming slashes from UrlBase when using environment variable

This commit is contained in:
sillock1
2024-06-05 23:13:52 +01:00
committed by Bogdan
parent da30b55902
commit 8ee0df9c65

View File

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