Fixed: Trimming slashes from UrlBase when using environment variable

(cherry picked from commit d7ceb11a64c3926f35aabf67c935680cf031bd0e)
pull/4813/head
Bogdan 7 months ago
parent 563db9231e
commit 6ec298ed2a

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

Loading…
Cancel
Save