mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-30 15:37:55 +02:00
Fixed: (Cardigann) Ignore disabled or unchecked inputs in login
This commit is contained in:
@@ -5,8 +5,11 @@ using System.Linq;
|
||||
using System.Net;
|
||||
using System.Net.Http;
|
||||
using System.Threading.Tasks;
|
||||
using AngleSharp.Dom;
|
||||
using AngleSharp.Html;
|
||||
using AngleSharp.Html.Dom;
|
||||
using AngleSharp.Html.Parser;
|
||||
using AngleSharp.Text;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using NLog;
|
||||
using NzbDrone.Common.Extensions;
|
||||
@@ -281,7 +284,15 @@ namespace NzbDrone.Core.Indexers.Definitions.Cardigann
|
||||
foreach (var input in inputs)
|
||||
{
|
||||
var name = input.GetAttribute("name");
|
||||
if (name == null)
|
||||
|
||||
if (name == null || input.IsDisabled())
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if (input is IHtmlInputElement element &&
|
||||
element.Type.IsOneOf(InputTypeNames.Checkbox, InputTypeNames.Radio) &&
|
||||
!input.IsChecked())
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
Reference in New Issue
Block a user