Fixed: Trimming slashes from UrlBase when using environment variable

(cherry picked from commit d7ceb11a64c3926f35aabf67c935680cf031bd0e)
This commit is contained in:
Bogdan 2024-05-18 19:05:24 +03:00
parent 638f92495c
commit 320bfeec16
1 changed files with 1 additions and 1 deletions

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())
{