Make sure URL base doesn't start with http or https

Closes #532
This commit is contained in:
Mark McDowall
2015-05-21 17:12:33 -07:00
parent f547cfd0c9
commit 49acae0fbb
3 changed files with 10 additions and 2 deletions

View File

@@ -42,6 +42,9 @@ namespace NzbDrone.Api.Config
.ValidIp4Address()
.NotListenAllIp4Address()
.When(c => c.BindAddress != "*");
SharedValidator.RuleFor(c => c.UrlBase)
.ValidUrlBase();
}
private HostConfigResource GetHostConfig()