|
|
@ -12,7 +12,7 @@ namespace NzbDrone.Common.Instrumentation
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// Url
|
|
|
|
// Url
|
|
|
|
new Regex(@"(?<=\?|&|: |;)(apikey|token|passkey|auth|authkey|user|uid|api|[a-z_]*apikey|account|passwd)=(?<secret>[^&=]+?)(?= |&|$)", RegexOptions.Compiled | RegexOptions.IgnoreCase),
|
|
|
|
new Regex(@"(?<=\?|&|: |;)(apikey|token|passkey|auth|authkey|user|uid|api|[a-z_]*apikey|account|passwd)=(?<secret>[^&=]+?)(?= |&|$)", RegexOptions.Compiled | RegexOptions.IgnoreCase),
|
|
|
|
new Regex(@"(?<=\?|&)[^=]*?(username|password)=(?<secret>[^&=]+?)(?= |&|$)", RegexOptions.Compiled | RegexOptions.IgnoreCase),
|
|
|
|
new Regex(@"(?<=\?|&| )[^=]*?(username|password)=(?<secret>[^&=]+?)(?= |&|$)", RegexOptions.Compiled | RegexOptions.IgnoreCase),
|
|
|
|
new Regex(@"torrentleech\.org/(?!rss)(?<secret>[0-9a-z]+)", RegexOptions.Compiled | RegexOptions.IgnoreCase),
|
|
|
|
new Regex(@"torrentleech\.org/(?!rss)(?<secret>[0-9a-z]+)", RegexOptions.Compiled | RegexOptions.IgnoreCase),
|
|
|
|
new Regex(@"torrentleech\.org/rss/download/[0-9]+/(?<secret>[0-9a-z]+)", RegexOptions.Compiled | RegexOptions.IgnoreCase),
|
|
|
|
new Regex(@"torrentleech\.org/rss/download/[0-9]+/(?<secret>[0-9a-z]+)", RegexOptions.Compiled | RegexOptions.IgnoreCase),
|
|
|
|
new Regex(@"iptorrents\.com/[/a-z0-9?&;]*?(?:[?&;](u|tp)=(?<secret>[^&=;]+?))+(?= |;|&|$)", RegexOptions.Compiled | RegexOptions.IgnoreCase),
|
|
|
|
new Regex(@"iptorrents\.com/[/a-z0-9?&;]*?(?:[?&;](u|tp)=(?<secret>[^&=;]+?))+(?= |;|&|$)", RegexOptions.Compiled | RegexOptions.IgnoreCase),
|
|
|
@ -77,7 +77,6 @@ namespace NzbDrone.Common.Instrumentation
|
|
|
|
private static string CleanseRemoteIP(Match match)
|
|
|
|
private static string CleanseRemoteIP(Match match)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var group = match.Groups[1];
|
|
|
|
var group = match.Groups[1];
|
|
|
|
var valueAll = match.Value;
|
|
|
|
|
|
|
|
var valueIP = group.Value;
|
|
|
|
var valueIP = group.Value;
|
|
|
|
|
|
|
|
|
|
|
|
if (IPAddress.TryParse(valueIP, out var address) && !address.IsLocalAddress())
|
|
|
|
if (IPAddress.TryParse(valueIP, out var address) && !address.IsLocalAddress())
|
|
|
|