1
0
Fork 0
mirror of https://github.com/Sonarr/Sonarr synced 2024-12-26 17:57:43 +00:00

Added some validation to Newznab.

This commit is contained in:
Mark McDowall 2012-05-12 10:25:59 -07:00
parent 92c6451bfc
commit 15279d3e97

View file

@ -12,10 +12,12 @@ namespace NzbDrone.Core.Repository
public Boolean Enable { get; set; }
[StringLength(100, MinimumLength = 2)]
[DisplayFormat(ConvertEmptyStringToNull = false)]
public String Name { get; set; }
[DisplayFormat(ConvertEmptyStringToNull = false)]
[RegularExpression(@"^http[s]?://.+")]
public String Url { get; set; }
public String ApiKey { get; set; }