mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-26 20:11:49 +02:00
New: Newznab providers will be rejected if they are not valid addresses.
Tests added for checking DNS.
This commit is contained in:
@@ -391,8 +391,15 @@ namespace NzbDrone.Web.Controllers
|
||||
_configProvider.FileSharingTalkUid = data.FileSharingTalkUid;
|
||||
_configProvider.FileSharingTalkSecret = data.FileSharingTalkSecret;
|
||||
|
||||
if (data.NewznabDefinitions != null)
|
||||
_newznabProvider.SaveAll(data.NewznabDefinitions);
|
||||
try
|
||||
{
|
||||
if (data.NewznabDefinitions != null)
|
||||
_newznabProvider.SaveAll(data.NewznabDefinitions);
|
||||
}
|
||||
catch(Exception)
|
||||
{
|
||||
return JsonNotificationResult.Oops("Invalid Nzbnab Indexer found, please check your settings");
|
||||
}
|
||||
|
||||
return GetSuccessResult();
|
||||
}
|
||||
|
Reference in New Issue
Block a user