Fixed: Trimming slashes from UrlBase when using environment variable

pull/3509/head v0.3.28.2554
sillock1 10 months ago committed by Bogdan
parent da30b55902
commit 8ee0df9c65

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

Loading…
Cancel
Save